i965: Improve compute-to-mrf.
authorEric Anholt <eric@anholt.net>
Thu, 18 Nov 2010 07:03:50 +0000 (15:03 +0800)
committerEric Anholt <eric@anholt.net>
Sat, 20 Nov 2010 03:54:11 +0000 (19:54 -0800)
commit47b1aac1cf0aefae4df58a60bb7eb26d21e25913
tree44998e9401173a986c3ea266fa566ab780a43cde
parentac89a90401f08df945248fcc96da59ba0e2bbfa9
i965: Improve compute-to-mrf.

We were skipping it if the instruction producing the value we were
going to compute-to-mrf used its result reg as a source reg.  This
meant that the typical "write interpolated color to fragment color" or
"texture from interpolated texcoord" shader didn't compute-to-MRF.
Just don't check for the interference cases until after we've checked
if this is the instruction we wanted to compute-to-MRF.

Improves nexuiz high-settings performance on my laptop 0.48% +- 0.08%
(n=3).
src/mesa/drivers/dri/i965/brw_fs.cpp