Mesa (master): i965: Fix flipped value of the not-embedded-in-if on gen6.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Dec 8 01:50:26 UTC 2010
Module: Mesa
Branch: master
Commit: b2167a6c013c057e731b96486e3363c1d1171d60
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2167a6c013c057e731b96486e3363c1d1171d60
Author: Eric Anholt <eric at anholt.net>
Date: Tue Dec 7 17:07:05 2010 -0800
i965: Fix flipped value of the not-embedded-in-if on gen6.
Fixes:
glean/glsl1-! (not) operator (1, fail)
glean/glsl1-! (not) operator (1, pass)
---
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 8840b6d..6bb195b 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1625,7 +1625,7 @@ fs_visitor::emit_if_gen6(ir_if *ir)
switch (expr->operation) {
case ir_unop_logic_not:
- inst = emit(fs_inst(BRW_OPCODE_IF, temp, op[0], fs_reg(1)));
+ inst = emit(fs_inst(BRW_OPCODE_IF, temp, op[0], fs_reg(0)));
inst->conditional_mod = BRW_CONDITIONAL_Z;
return;
More information about the mesa-commit
mailing list