r600: fix atomic counter index mode getting emitted on pre-cayman
authorDave Airlie <airlied@redhat.com>
Wed, 27 Dec 2017 01:56:20 +0000 (01:56 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 27 Dec 2017 02:02:46 +0000 (02:02 +0000)
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 <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c

index 06d7ca02e91b51a645864c968f1f7df0e7d61e81..2650a33846e12b784ef273cdaf53ba1d4bc3bb75 100644 (file)
@@ -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);