blitter: Correct swizzle used for 1D array blits

Fixes piglit: arb_get_texture_sub_image-get for 1D array blits

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>.
macos/master
Gert Wollny 3 years ago
parent caacbe8c7d
commit 4193c10211
  1. 8
      src/vrend_blitter.c

@ -205,8 +205,14 @@ static void blit_get_swizzle(int tgsi_tex_target, unsigned flags,
if (flags & BLIT_USE_MSAA) { if (flags & BLIT_USE_MSAA) {
retval->type = "ivec2"; retval->type = "ivec2";
} }
/* fallthrough */ retval->swizzle = ".xy";
break;
case TGSI_TEXTURE_1D_ARRAY: case TGSI_TEXTURE_1D_ARRAY:
if (flags & (BLIT_USE_GLES)) {
retval->swizzle = ".xyz";
break;
}
/* fallthrough */
case TGSI_TEXTURE_2D: case TGSI_TEXTURE_2D:
case TGSI_TEXTURE_RECT: case TGSI_TEXTURE_RECT:
retval->swizzle = ".xy"; retval->swizzle = ".xy";

Loading…
Cancel
Save