i965/fs/gen7: Allow MATH instructions to have MRF as a destination
authorMatt Turner <mattst88@gmail.com>
Tue, 12 Feb 2013 21:59:37 +0000 (13:59 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 28 Feb 2013 21:18:59 +0000 (13:18 -0800)
total instructions in shared programs: 1376297 -> 1375626 (-0.05%)
instructions in affected programs:     35977 -> 35306 (-1.87%)

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp

index c6143c908d652fadbe4ca3f8d38c1337367e7180..ff4248bd61a52a7153c4452df63cbead19fa684d 100644 (file)
@@ -2081,7 +2081,7 @@ fs_visitor::compute_to_mrf()
            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.
                */