diff options
author | Eric Anholt <[email protected]> | 2010-09-27 21:15:28 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-09-28 09:33:30 -0700 |
commit | fceb78e3cc67d035a69613826f46a18e62235f5c (patch) | |
tree | 1eacb3628af97c938d8851c0a8cd6e828775b7c2 /src/mesa/drivers/dri/i965 | |
parent | 7ee8fa0421fd3c6522120d8639c6b311674a9b10 (diff) |
i965: Fix negation in the new FS backend.
Fixes:
glsl1-Negation
glsl1-Negation2
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-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 7f2bf84a140..d05aa29014f 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -638,7 +638,7 @@ fs_visitor::visit(ir_expression *ir) emit(fs_inst(BRW_OPCODE_ADD, this->result, op[0], fs_reg(-1))); break; case ir_unop_neg: - op[0].negate = ~op[0].negate; + op[0].negate = !op[0].negate; this->result = op[0]; break; case ir_unop_abs: |