i965: Don't calculate masks of used FS inputs
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 6 Jan 2012 22:49:02 +0000 (14:49 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 11 Jan 2012 20:51:24 +0000 (12:51 -0800)
commitefdc8bf1894790a85c118881395a998cbae34c1a
tree08d1276a4b9aa40f0ca66dac0f0093b6959ea063
parent6c0df75803e1944f82a1468dcca47d23de82ea6b
i965: Don't calculate masks of used FS inputs

This previously enabled some optimizations in the fragment shader
(interpolation, etc.) if some input components were always 0.0 or
1.0.  However, this data was generated by analyzing Mesa IR.  The
next patch in this series removes generation of Mesa IR for GLSL
paths.  When we detect that case, just set the used mask to ~0 and
circumvent the optimizations.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vs_constval.c