From: Eric Anholt Date: Mon, 26 Nov 2012 18:23:07 +0000 (-0800) Subject: i965/fs: Allow source mods on gen7+ math. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9156d0cba1090c4bcc3a6c0c7b2ad8921a295be4;p=mesa.git 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. --- 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;