Mesa (master): i965/fs: Allow source mods on gen7+ math.

Eric Anholt anholt at kemper.freedesktop.org
Wed Dec 5 01:13:09 UTC 2012


Module: Mesa
Branch: master
Commit: 9156d0cba1090c4bcc3a6c0c7b2ad8921a295be4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9156d0cba1090c4bcc3a6c0c7b2ad8921a295be4

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Nov 26 10:23:07 2012 -0800

i965/fs: Allow source mods on gen7+ math.

This gen6 restriction was removed in gen7 as the mathbox merge to act
more like a normal instruction was finished in the hardware.

---

 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 669f408..6ccc0d9 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1645,7 +1645,7 @@ fs_visitor::register_coalesce()
 	  * unusual register regions, so avoid coalescing those for
 	  * now.  We should do something more specific.
 	  */
-	 if (intel->gen >= 6 &&
+	 if (intel->gen == 6 &&
 	     scan_inst->is_math() &&
 	     (has_source_modifiers || inst->src[0].file == UNIFORM)) {
 	    interfered = true;




More information about the mesa-commit mailing list