i965: Fix up writemasked assignments in the new FS.
authorEric Anholt <eric@anholt.net>
Mon, 27 Sep 2010 21:38:51 +0000 (14:38 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 27 Sep 2010 23:07:42 +0000 (16:07 -0700)
Not sure how I managed to get tests to succeed without this.  +54 piglits.

src/mesa/drivers/dri/i965/brw_fs.cpp

index 2b51737..cf3e4e6 100644 (file)
@@ -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++;
    }
 }