glsl: Track initial mask in constant propagation live set
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 27 Jun 2011 23:33:13 +0000 (16:33 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 6 Jul 2011 23:41:34 +0000 (16:41 -0700)
commit0eb97979584b73907327eebc547302e6b8d8976a
tree131a7e420365fd187afa3a0935331e7425ce504e
parent31484b068d4d2842593498c75ec831dfa75af14e
glsl: Track initial mask in constant propagation live set

The set of values initially available (before any kills) must be
tracked with each constant in the set.  Otherwise the wrong component
can be selected after earlier components have been killed.

NOTE: This is a candidate for the 7.10 and 7.11 branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37383
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: Kenneth Graunke <kenneth@whitecape.org>
Cc: Matthias Bentrup <matthias.bentrup@googlemail.com>
src/glsl/opt_constant_propagation.cpp