i965/vs: Port the fix for clip plane writemasks from brw_vs_emit.c.
authorEric Anholt <eric@anholt.net>
Fri, 5 Aug 2011 23:23:42 +0000 (16:23 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Aug 2011 20:04:41 +0000 (13:04 -0700)
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 8ee4884098c5c8f64538360eedeba232301141ce..439969ab7ea825f6cd3f553df816cd7efebf4ad1 100644 (file)
@@ -1618,7 +1618,7 @@ vec4_visitor::emit_vue_header_gen6(int header_mrf)
            m = brw_message_reg(header_mrf + 1);
 
         emit(BRW_OPCODE_DP4,
-             dst_reg(brw_writemask(m, 1 << (i & 7))),
+             dst_reg(brw_writemask(m, 1 << (i & 3))),
              src_reg(c->userplane[i]));
       }
       header_mrf += 2;