Mesa (master): i965: Don't bother with RNDZ for f2i.
Eric Anholt
anholt at kemper.freedesktop.org
Tue Sep 7 17:34:14 UTC 2010
Module: Mesa
Branch: master
Commit: 5afdfa222fa9ec8c54e7d6957d2680c37a9eb715
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5afdfa222fa9ec8c54e7d6957d2680c37a9eb715
Author: Eric Anholt <eric at anholt.net>
Date: Sun Sep 5 20:55:39 2010 -0700
i965: Don't bother with RNDZ for f2i.
The default type conversion for MOV should be fine, and RNDZ actually
requires two instructions.
---
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 b31d445..811d108 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -767,7 +767,7 @@ fs_visitor::visit(ir_expression *ir)
emit(fs_inst(BRW_OPCODE_MOV, this->result, op[0]));
break;
case ir_unop_f2i:
- emit(fs_inst(BRW_OPCODE_RNDZ, this->result, op[0]));
+ emit(fs_inst(BRW_OPCODE_MOV, this->result, op[0]));
break;
case ir_unop_f2b:
case ir_unop_i2b:
More information about the mesa-commit
mailing list