i965/fs: Fix copy propagation with smearing.
authorEric Anholt <eric@anholt.net>
Sat, 16 Feb 2013 05:10:06 +0000 (21:10 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 19 Feb 2013 18:33:15 +0000 (10:33 -0800)
commit49bdebad3857bb9ebac53f593d08f0057f5a20d3
treee95e8237d20d2ee1f1d3c01a2bb2378b4cf5a181
parentde7cb1cff3dbe30bbd691ed56e61c9d37ba5f2da
i965/fs: Fix copy propagation with smearing.

We were correctly relaying the smear from MOV's src, but if the MOV
didn't do a smear, we don't want to smash the smear value from the
instruction being propagated into.  Prevents a regression in the
upcoming UBO change.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
NOTE: This is a candidate for the 9.1 branch.
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp