summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-08-05 16:23:42 -0700
committerEric Anholt <[email protected]>2011-08-16 13:04:41 -0700
commit4a4857246c79c42d918a84d7e28e9afff3a9ef6d (patch)
tree738ec548b214aac5bfac8353b971160dc939b85e /src
parent83d5850518388202c5589d3181b84fb54c213fb1 (diff)
i965/vs: Port the fix for clip plane writemasks from brw_vs_emit.c.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 8ee4884098c..439969ab7ea 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -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;