summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-09-05 20:55:39 -0700
committerEric Anholt <[email protected]>2010-09-07 10:34:10 -0700
commit5afdfa222fa9ec8c54e7d6957d2680c37a9eb715 (patch)
tree9d7e5872c32e4b0cdede579771a584c97b6eecbb /src/mesa
parenta560a509fab467b0ed4be2bceaf1c5a60890ca0d (diff)
i965: Don't bother with RNDZ for f2i.
The default type conversion for MOV should be fine, and RNDZ actually requires two instructions.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
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 b31d445afb1..811d1082284 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: