projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dd07b4
)
i965: Use logical-not when emitting ir_unop_ceil.
author
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 13 Oct 2010 23:35:34 +0000
(16:35 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 14 Oct 2010 19:40:16 +0000
(12:40 -0700)
Fixes piglit test glsl-fs-ceil.
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 d5ebccbfd975318dedd13f6a0a5950b944239b5f..fc6f99208383589a76beaf3ba8dbce36042d189e 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_fs.cpp
@@
-872,7
+872,7
@@
fs_visitor::visit(ir_expression *ir)
emit(fs_inst(BRW_OPCODE_RNDD, this->result, op[0]));
break;
case ir_unop_ceil:
- op[0].negate =
~
op[0].negate;
+ op[0].negate =
!
op[0].negate;
inst = emit(fs_inst(BRW_OPCODE_RNDD, this->result, op[0]));
this->result.negate = true;
break;