i965: Only set proj_attrib_mask for fixed function.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Aug 2012 06:42:23 +0000 (23:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 27 Aug 2012 21:23:40 +0000 (14:23 -0700)
commitab17762c70852ca8fc400d7b5c6696d412ff2afe
treedb2a80aa994379cb63c1424acc9039631c558aac
parent6cc14c2493bb6957f2581671020809e90a8d8643
i965: Only set proj_attrib_mask for fixed function.

brw_wm_prog_key's proj_attrib_mask field is designed to enable an
optimization for fixed-function programs, letting us avoid projecting
attributes where the divisor is 1.0.

However, for shaders, this is not useful, and is pretty much impossible
to guess when building the FS precompile key.  Turning it off for
shaders should allow the precompile to work and not lose much.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Suggested-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_wm.c