On 30 August 2011 12:34, Kenneth Graunke <span dir="ltr">&lt;<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The fragment shader needs gl_Position.w in order to do interpolation.<br>
Both the comments above and the old VS backend emitted this.<br>
<br>
Fixes a ton of piglit tests on Ironlake with the new VS.<br></blockquote><div><br>I ran across this last week but was in the middle of other work and ran out of time to address it.  Thanks for fixing it.<br><br>Reviewed-by: Paul Berry &lt;<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>&gt;<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Signed-off-by: Kenneth Graunke &lt;<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>&gt;<br>
---<br>
 src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp |    2 ++<br>
 1 files changed, 2 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp<br>
index 4babc56..04c49da 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp<br>
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp<br>
@@ -1736,6 +1736,8 @@ vec4_visitor::emit_vue_header_gen4(int header_mrf)<br>
<br>
       /* Pad so that vertex element data is aligned. */<br>
       header_mrf++;<br>
+<br>
+      emit(BRW_OPCODE_MOV, brw_message_reg(header_mrf++), pos);<br>
    } else {<br>
       /* There are 8 dwords in VUE header pre-Ironlake:<br>
        * dword 0-3 (m1) is indices, point width, clip flags.<br>
<font color="#888888">--<br>
1.7.6<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></blockquote></div><br>