freedreno/a2xx: fix unused variable warning
authorRob Clark <robdclark@gmail.com>
Fri, 25 Jan 2019 20:02:13 +0000 (15:02 -0500)
committerRob Clark <robdclark@gmail.com>
Sat, 26 Jan 2019 15:44:31 +0000 (10:44 -0500)
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/ir2_nir.c

index 8679116976b1fe37af2fe27509a32eab214114bc..8345e94c36372a1322bc8f1b48a470948ad7622c 100644 (file)
@@ -350,7 +350,6 @@ instr_create_alu_reg(struct ir2_context *ctx, nir_op opcode,
 {
        struct ir2_instr *instr;
        struct ir2_reg *reg;
-       unsigned ncomp, max_comp;
 
        reg = share_reg ? share_reg->reg : &ctx->reg[ctx->reg_count++];
        reg->ncomp = MAX2(reg->ncomp, util_logbase2(write_mask) + 1);