i965: Fix an inconsistency inb the VUE map with gl_ClipVertex on gen4/5.
authorEric Anholt <eric@anholt.net>
Fri, 29 Mar 2013 07:26:07 +0000 (00:26 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 31 Mar 2013 00:24:18 +0000 (17:24 -0700)
commit0967c362bf378b7415c30ca6d9523d3b2a3a7f5d
treeeeacc4dcb7c80b8771628d402b38c062f70f8373
parent9dd19575d33b907be655586fbaf9569d9afc2711
i965: Fix an inconsistency inb the VUE map with gl_ClipVertex on gen4/5.

We are intentionally not allocating a slot for gl_ClipVertex.  But by
leaving the bit set in the slots_valid, the fragment shader's computation
of where varyings are in urb entry coming out of the SF would be off by
one.  Fixes rendering in Freespace 2 SCP, and improves rendering in TF2.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62830
Tested-by: Joaquín Ignacio Aramendía <samsagax@gmail.com>
NOTE: This is a candidate for the 9.1 branch.
Reviewed-and-tested-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_vs.c