diff options
author | Kenneth Graunke <[email protected]> | 2011-05-11 07:54:57 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-05-17 23:33:02 -0700 |
commit | 2a95568f64a6641a49a2d4855272e9be2ac2db6d (patch) | |
tree | 3d4102fb4613ab86c559230fd6637dc33eff897a /src/mesa | |
parent | 6e918163dfbdc829f31a0aefc07248c49b890d1d (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 8dee849edd4..1b0e7e82fbe 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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; } |