freedreno/a2xx: fix increment in assert
authorRob Clark <robclark@freedesktop.org>
Tue, 3 Feb 2015 20:52:53 +0000 (15:52 -0500)
committerRob Clark <robclark@freedesktop.org>
Sat, 21 Feb 2015 22:11:01 +0000 (17:11 -0500)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88883
Signed-off-by: Rob Clark <robclark@freedesktop.org>
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++];
                }