Mesa (master): i965: Fix up writemasked assignments in the new FS.

Eric Anholt anholt at kemper.freedesktop.org
Tue Sep 28 01:46:52 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Sep 27 14:38:51 2010 -0700

i965: Fix up writemasked assignments in the new FS.

Not sure how I managed to get tests to succeed without this.  +54 piglits.

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 2b51737..cf3e4e6 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -868,9 +868,9 @@ fs_visitor::visit(ir_assignment *ir)
 	 inst = emit(fs_inst(BRW_OPCODE_MOV, l, r));
 	 if (ir->condition)
 	    inst->predicated = true;
+	 r.reg_offset++;
       }
       l.reg_offset++;
-      r.reg_offset++;
    }
 }
 




More information about the mesa-commit mailing list