summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-02-12 13:59:37 -0800
committerMatt Turner <[email protected]>2013-02-28 13:18:59 -0800
commit4eeb9ded9d0165a81aa9d2ac01197e30ddf9d835 (patch)
treef1d58a1cd50332befa1922e32ffbf3cc252a4910
parentd5c3aa89dc4a8de048920470300bb8a921e72899 (diff)
i965/fs/gen7: Allow MATH instructions to have MRF as a destination
total instructions in shared programs: 1376297 -> 1375626 (-0.05%) instructions in affected programs: 35977 -> 35306 (-1.87%) Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index c6143c908d6..ff4248bd61a 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -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.
*/