i965: Don't bother with RNDZ for f2i.
authorEric Anholt <eric@anholt.net>
Mon, 6 Sep 2010 03:55:39 +0000 (20:55 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Sep 2010 17:34:10 +0000 (10:34 -0700)
The default type conversion for MOV should be fine, and RNDZ actually
requires two instructions.

src/mesa/drivers/dri/i965/brw_fs.cpp

index b31d445afb1f70a46d3ef725aba5e2a91898cd79..811d1082284c3ae90896825f4834aa70e33612b2 100644 (file)
@@ -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: