Mesa (master): i965: Use logical-not when emitting ir_unop_ceil.
Kenneth Graunke
kwg at kemper.freedesktop.org
Thu Oct 14 19:40:18 UTC 2010
Module: Mesa
Branch: master
Commit: c4226142f3b5d1c931fcc781be8a3aafdfabf316
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c4226142f3b5d1c931fcc781be8a3aafdfabf316
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Oct 13 16:35:34 2010 -0700
i965: Use logical-not when emitting ir_unop_ceil.
Fixes piglit test glsl-fs-ceil.
---
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 d5ebccb..fc6f992 100644
--- 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;
More information about the mesa-commit
mailing list