i965/fs: Fix linear gl_Color interpolation on pre-gen6 hardware.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 27 Mar 2011 05:04:23 +0000 (22:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 27 Mar 2011 05:20:11 +0000 (22:20 -0700)
commit0c8beb0ab5e72a9d2ecaad51db16a7d5291e120b
tree8b7efe6e30a2ff86f015592ec531f477c8c4c97c
parent62d5f7a04a0b3b11dc3bcf1f416f3b7646eef4f5
i965/fs: Fix linear gl_Color interpolation on pre-gen6 hardware.

Civilization 4's shaders make heavy use of gl_Color and don't use
perspective interpolation.  This resulted in rivers, units, trees, and
so on being rendered almost entirely white.  This is a regression
compared to the old fragment shader backend.

Found by inspection (comparing the old and new FS backend code).

References: https://bugs.freedesktop.org/show_bug.cgi?id=32949

NOTE: This is a candidate for the 7.10 branch.
src/mesa/drivers/dri/i965/brw_fs.cpp