From 9156d0cba1090c4bcc3a6c0c7b2ad8921a295be4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 26 Nov 2012 10:23:07 -0800 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 669f408087a..6ccc0d99743 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; -- 2.30.2