i965: Fix shaders that write to gl_PointSize on Sandybridge.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Feb 2011 18:04:18 +0000 (10:04 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Feb 2011 18:52:44 +0000 (10:52 -0800)
commit3e91070ea81da970b640acf22e2b1aa761161906
tree050058dc613221a2bf1826b04d7d69f042f154fe
parentc6cedd43feccb9341c597329e28bb432c491939f
i965: Fix shaders that write to gl_PointSize on Sandybridge.

gl_PointSize (VERT_RESULT_PSIZ) doesn't take up a message register,
as it's part of the header.  Without this fix, writing to gl_PointSize
would cause the SF to read and use the wrong attributes, leading to all
kinds of random looking failure.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen6_sf_state.c