Mesa (master): freedreno/a2xx: fix increment in assert

Rob Clark robclark at kemper.freedesktop.org
Sat Feb 21 22:11:53 UTC 2015


Module: Mesa
Branch: master
Commit: 68552266535747bad1eff34d856c43158398b9bf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=68552266535747bad1eff34d856c43158398b9bf

Author: Rob Clark <robclark at freedesktop.org>
Date:   Tue Feb  3 15:52:53 2015 -0500

freedreno/a2xx: fix increment in assert

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88883
Signed-off-by: Rob Clark <robclark at freedesktop.org>

---

 src/gallium/drivers/freedreno/a2xx/ir-a2xx.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c b/src/gallium/drivers/freedreno/a2xx/ir-a2xx.c
index cff5a27..2b62b3a 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++];
 		}




More information about the mesa-commit mailing list