diff options
author | Eric Anholt <[email protected]> | 2011-08-27 11:07:05 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-08-31 11:15:54 -0700 |
commit | ead7ffc62a99c83c3f41a3f229cfbb9ed1826df0 (patch) | |
tree | 6c192081504bb939987048b12d48fd64d39fe46f | |
parent | 2f12be5c952ec84eece74a321e5b0a92314aba3a (diff) |
i965/vs: Convert gen6 userclip handling to new generators.
This DP4 had one of its operands missing, so we were generating
garbage clip distances. Using the per-opcode instruction generators
made it obvious.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index d41c1e6039a..3569e3ea14d 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1858,9 +1858,9 @@ vec4_visitor::emit_vue_header_gen6(int header_mrf) else m = brw_message_reg(header_mrf + 1); - emit(BRW_OPCODE_DP4, - dst_reg(brw_writemask(m, 1 << (i & 3))), - src_reg(c->userplane[i])); + emit(DP4(dst_reg(brw_writemask(m, 1 << (i & 3))), + src_reg(output_reg[VERT_RESULT_HPOS]), + src_reg(c->userplane[i]))); } header_mrf += 2; } |