Mesa (master): i965/fs/gen7: Allow MATH instructions to have MRF as a destination
Matt Turner
mattst88 at kemper.freedesktop.org
Thu Feb 28 23:21:27 UTC 2013
Module: Mesa
Branch: master
Commit: 4eeb9ded9d0165a81aa9d2ac01197e30ddf9d835
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4eeb9ded9d0165a81aa9d2ac01197e30ddf9d835
Author: Matt Turner <mattst88 at gmail.com>
Date: Tue Feb 12 13:59:37 2013 -0800
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 <eric at anholt.net>
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
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 c6143c9..ff4248b 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.
*/
More information about the mesa-commit
mailing list