Revert "i965/vec4: Only zero out unused message components when there are any."
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2013 22:32:26 +0000 (15:32 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Sep 2013 22:33:16 +0000 (15:33 -0700)
This reverts commit 6c3db2167c64ecf2366862f15f8e2d4a91f1028c, which I
accidentally pushed along with other code.  A better version of the fix
will be committed later.

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

index 7ced32c6e8b521392f47eda65c010cb5cda6fd77..28dc313e4315bc12be1041b9d8e4246563a1a631 100644 (file)
@@ -2251,10 +2251,8 @@ vec4_visitor::visit(ir_texture *ir)
         emit(MOV(dst_reg(MRF, param_base, ir->coordinate->type, coord_mask),
                  coordinate));
       }
-      if (zero_mask != 0) {
-         emit(MOV(dst_reg(MRF, param_base, ir->coordinate->type, zero_mask),
-                  src_reg(0)));
-      }
+      emit(MOV(dst_reg(MRF, param_base, ir->coordinate->type, zero_mask),
+              src_reg(0)));
       /* Load the shadow comparitor */
       if (ir->shadow_comparitor && ir->op != ir_txd) {
         emit(MOV(dst_reg(MRF, param_base + 1, ir->shadow_comparitor->type,