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 2b517375eb63922c065849eace78b1d1f7fff5f1..cf3e4e6ae84cc74ed25ef36abf90c76141dc4e6e 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++;
    }
 }