X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Ffreedreno%2Fa2xx%2Fir-a2xx.c;h=2b62b3ae23cc2ac404925efb7dd37137ce762057;hb=4722743f4b920c6986a7148ef3ce76b4fd12db46;hp=cff5a27fce0adc427635d5ca93c8080991d68457;hpb=c35f14f36880eb20f5e54480444e343520e9bec5;p=mesa.git diff --git a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c index cff5a27fce0..2b62b3ae23c 100644 --- a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c +++ b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c @@ -439,7 +439,8 @@ static int instr_emit_alu(struct ir2_instruction *instr, uint32_t *dwords, assert(sdst_reg->flags == dst_reg->flags); if (src3_reg) { - assert(src3_reg == instr->regs[reg++]); + assert(src3_reg == instr->regs[reg]); + reg++; } else { src3_reg = instr->regs[reg++]; }