aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-11-07 12:07:44 -0800
committerKenneth Graunke <[email protected]>2011-11-07 12:09:02 -0800
commitdceb202297b39220fbbcb41267077fb3ff8d137a (patch)
treecd37e665456069ba36b7d6cf6897f3fe7e6227c6 /src
parenta73c65c5342bf41fa0dfefe7daa9197ce6a11db4 (diff)
i965: Fix Sandybridge regression introduced by workaround-free math.
Commit a73c65c5342bf41fa0dfefe7daa9197ce6a11db4 had a typo which accidentally enabled the workaround-free Gen7 code on Gen6. Fixes GPU hangs in anything using pow() or integer division/modulus. Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_emit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
index b613fb081fc..ad4fae2c3b5 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
@@ -833,7 +833,7 @@ fs_visitor::generate_code()
case SHADER_OPCODE_INT_QUOTIENT:
case SHADER_OPCODE_INT_REMAINDER:
case SHADER_OPCODE_POW:
- if (intel->gen >= 6) {
+ if (intel->gen >= 7) {
generate_math2_gen7(inst, dst, src[0], src[1]);
} else if (intel->gen == 6) {
generate_math2_gen6(inst, dst, src[0], src[1]);