aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-27 13:19:28 -0700
committerEric Anholt <[email protected]>2010-08-27 13:19:28 -0700
commit53290900db2f13fd9ab56b8f9780fa309d31780f (patch)
tree6fb64bcd24f573ce4810c74a4d71a090b23a7491 /src/mesa
parent2776ad2641469d3bdb6f53b99fbd748efd277c51 (diff)
i965: Fix swapped instructions in ir_unop_abs and ir_unop_neg.
Fixes glsl-fs-neg and 5 other tests.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 336dbd63f35..d8369868ade 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -641,12 +641,12 @@ fs_visitor::visit(ir_expression *ir)
emit(fs_inst(BRW_OPCODE_ADD, this->result, op[0], fs_reg(-1)));
break;
case ir_unop_neg:
- this->result = op[0];
op[0].negate = ~op[0].negate;
+ this->result = op[0];
break;
case ir_unop_abs:
- this->result = op[0];
op[0].abs = true;
+ this->result = op[0];
break;
case ir_unop_sign:
temp = fs_reg(this, ir->type);