i965: Avoid register coalescing away MATH workarounds on Ivybridge.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 11 May 2011 14:54:57 +0000 (07:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2011 06:33:02 +0000 (23:33 -0700)
commit2a95568f64a6641a49a2d4855272e9be2ac2db6d
tree3d4102fb4613ab86c559230fd6637dc33eff897a
parent6e918163dfbdc829f31a0aefc07248c49b890d1d
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>
src/mesa/drivers/dri/i965/brw_fs.cpp