i965/vs/gen7: Allow MATH instructions to have MRF as a destination

total instructions in shared programs: 346873 -> 346847 (-0.01%)
instructions in affected programs:     364 -> 338 (-7.14%)

(All affected shaders are from Lightsmark)

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Matt Turner 2013-02-12 15:50:43 -08:00
parent 4eeb9ded9d
commit f0213b1242

View file

@ -753,7 +753,7 @@ vec4_visitor::opt_register_coalesce()
if (scan_inst->mlen)
break;
if (intel->gen >= 6) {
if (intel->gen == 6) {
/* gen6 math instructions must have the destination be
* GRF, so no compute-to-MRF for them.
*/