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 <airlied@redhat.com>
macos/master
Gurchetan Singh 7 years ago committed by Dave Airlie
parent 58d9153672
commit 272a8901bd
  1. 1
      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:

Loading…
Cancel
Save