From: Rob Clark Date: Fri, 25 Jan 2019 20:02:13 +0000 (-0500) Subject: freedreno/a2xx: fix unused variable warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd79b5e0c2cc0035719348592bac97dce6ce1d73;p=mesa.git freedreno/a2xx: fix unused variable warning Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c index 8679116976b..8345e94c363 100644 --- a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c +++ b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c @@ -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);