i965/fs: Correctly set up gl_FragCoord.w on Sandybridge.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 20 Feb 2011 00:48:24 +0000 (16:48 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Feb 2011 18:52:44 +0000 (10:52 -0800)
commit4a3b28113c3d23ba21bb8b8f5ebab7c567083a6d
tree99252f88e4c1a15a76335ba004cd7b911c040e21
parentdf2aef0e197f9276f60a8e755260420c90841269
i965/fs: Correctly set up gl_FragCoord.w on Sandybridge.

pixel_w is the final result; wpos_w is used on gen4 to compute it.

NOTE: This is a candidate for the 7.10 branch.

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