radeonsi/gfx9: fix 1D array shader images
authorMarek Olšák <marek.olsak@amd.com>
Sun, 23 Apr 2017 21:29:20 +0000 (23:29 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Apr 2017 11:08:05 +0000 (13:08 +0200)
Cc: 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 5d7175d674eb18a9d076871addfbbed9492c0004..c5c994d60726ae8d0d1fb0434ed661d5b6263822 100644 (file)
@@ -3425,6 +3425,7 @@ static LLVMValueRef image_fetch_coords(
                } else if (target == TGSI_TEXTURE_1D_ARRAY) {
                        coords[2] = coords[1];
                        coords[1] = ctx->i32_0;
+                       num_coords++;
                }
        }