summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-12-27 01:56:20 +0000
committerDave Airlie <[email protected]>2017-12-27 02:02:46 +0000
commit88d09b642d09a2cb1b10fc0869ddc5fa9255bee5 (patch)
treed84637a5498533d3f75986392b4b2223b1e54f9b /src/gallium/drivers/r600
parent34d23e82ca9dce784e3041488725aa828f847f13 (diff)
r600: fix atomic counter index mode getting emitted on pre-cayman
This is a regression since I added cayman atomic support, not sure it fixes anything, but the shader dumps look better. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 06d7ca02e91..2650a33846e 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -7902,7 +7902,7 @@ static int tgsi_set_gds_temp(struct r600_shader_ctx *ctx,
int *uav_id_p, int *uav_index_mode_p)
{
struct tgsi_full_instruction *inst = &ctx->parse.FullToken.FullInstruction;
- int uav_id, uav_index_mode;
+ int uav_id, uav_index_mode = 0;
int r;
bool is_cm = (ctx->bc->chip_class == CAYMAN);