mesa: Reduce the source channels considered in optimization passes.
authorEric Anholt <eric@anholt.net>
Fri, 6 Nov 2009 22:06:08 +0000 (14:06 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 6 Nov 2009 22:27:35 +0000 (14:27 -0800)
commit6b0bcfafab7b380ee71da1a7754f4c09614811d6
tree36e28d738d7f33e8505ce719c9a2476c585e799a
parentf3cacfe216fb58b913bbc23de49d696a33da69e1
mesa: Reduce the source channels considered in optimization passes.

Depending on the writemask or the opcode, we can often trim the source
channels considered used for dead code elimination.  This saves actual
instructions on 965 in the non-GLSL path for glean glsl1, and cleans up
the writemasks of programs even further.
src/mesa/shader/prog_optimize.c