summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-02-03 15:52:53 -0500
committerEmil Velikov <[email protected]>2015-03-12 12:33:42 +0000
commit38777e1345f2471f5889b1f145539e3d5d7a59c7 (patch)
tree4aa3d58e41fa8365f39c417dd8048bb3c12edb56 /src
parent4de2f250830ec119d13153da4651a9c06079555e (diff)
freedreno/a2xx: fix increment in assert
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88883 Signed-off-by: Rob Clark <[email protected]> (cherry picked from commit 68552266535747bad1eff34d856c43158398b9bf)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/a2xx/ir-a2xx.c3
1 files changed, 2 insertions, 1 deletions
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++];
}