projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ee8fa0
)
i965: Fix negation in the new FS backend.
author
Eric Anholt
<eric@anholt.net>
Tue, 28 Sep 2010 04:15:28 +0000
(21:15 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 28 Sep 2010 16:33:30 +0000
(09:33 -0700)
Fixes:
glsl1-Negation
glsl1-Negation2
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 7f2bf84a14081e1ef53c0aab5363ca5af755534a..d05aa29014f8048e0e62adfc42b5b6f840190ec5 100644
(file)
--- 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: