From 272a8901bd3415e4969e2d47517a0e4a0ccf8d1a Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Fri, 9 Mar 2018 18:55:20 -0800 Subject: [PATCH] vrend: fix texture upload for 3-byte formats We need a case for 24-bit formats, like GL_RGB8I. Fixes: dEQP-GLES3.functional.texture.specification.*.{rgb8i, rgb8ui} dEQP-GLES3.functional.texture.format.sized.2d.*.{rgb8i, rgb8ui} Example test cases: dEQP-GLES3.functional.texture.specification.basic_teximage2d.rgb8i_2d dEQP-GLES3.functional.texture.specification.basic_teximage2d.rgb8ui_2d dEQP-GLES3.functional.texture.format.sized.2d.rgb8i_npot Signed-off-by: Dave Airlie --- src/vrend_renderer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 5943e3f..70fbdca 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -4998,6 +4998,7 @@ static int vrend_renderer_transfer_write_iov(struct vrend_context *ctx, switch (elsize) { case 1: + case 3: glPixelStorei(GL_UNPACK_ALIGNMENT, 1); break; case 2: