i965: Avoid register coalescing away MATH workarounds on Ivybridge.
The MATH instruction cannot handle source modifiers, even on Gen7. So, apply this workaround for Sandybridge on Ivybridge as well. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
6e918163df
commit
2a95568f64
|
@ -3386,7 +3386,7 @@ fs_visitor::register_coalesce()
|
|||
/* The gen6 MATH instruction can't handle source modifiers, so avoid
|
||||
* coalescing those for now. We should do something more specific.
|
||||
*/
|
||||
if (intel->gen == 6 && scan_inst->is_math() && has_source_modifiers) {
|
||||
if (intel->gen >= 6 && scan_inst->is_math() && has_source_modifiers) {
|
||||
interfered = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue