summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-04-23 23:29:20 +0200
committerEmil Velikov <[email protected]>2017-04-30 09:46:30 +0100
commit328afc7e8629f4e0b76b6aa02b008d9072f98ca0 (patch)
treee7d5061e41684d8e3cbda4b45162cb711e33fdc4 /src/gallium
parent77345993ecf411a6f7ed900732bb0bb4f6592c2c (diff)
radeonsi/gfx9: fix 1D array shader images
Cc: 17.1 <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> (cherry picked from commit 482e6b07cc6ce4b2ceac8188be19dbf252eaecde)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 5d7175d674e..c5c994d6072 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -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++;
}
}