projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a560a50
)
i965: Don't bother with RNDZ for f2i.
author
Eric Anholt
<eric@anholt.net>
Mon, 6 Sep 2010 03:55:39 +0000
(20:55 -0700)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index b31d445afb1f70a46d3ef725aba5e2a91898cd79..811d1082284c3ae90896825f4834aa70e33612b2 100644
(file)
--- 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: