gallium: use $(top_builddir) when referencing static archives
[mesa.git] / src / gallium / drivers / freedreno / a2xx / ir-a2xx.c
index cff5a27fce0adc427635d5ca93c8080991d68457..2b62b3ae23cc2ac404925efb7dd37137ce762057 100644 (file)
@@ -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++];
                }