projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02d6153
)
ir_to_mesa: Add missing no-op type conversions.
author
Eric Anholt
<eric@anholt.net>
Wed, 30 Jun 2010 23:23:32 +0000
(16:23 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 30 Jun 2010 23:23:32 +0000
(16:23 -0700)
Fixes glsl-fs-step.
src/mesa/shader/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/shader/ir_to_mesa.cpp
b/src/mesa/shader/ir_to_mesa.cpp
index 6542441a8c31369160ffc6dc075f9d1e6c49fc49..af9bdb548283ac5b72310379c52b6f02cdfdd6ca 100644
(file)
--- a/
src/mesa/shader/ir_to_mesa.cpp
+++ b/
src/mesa/shader/ir_to_mesa.cpp
@@
-756,6
+756,8
@@
ir_to_mesa_visitor::visit(ir_expression *ir)
ir_to_mesa_emit_scalar_op1(ir, OPCODE_RSQ, result_dst, op[0]);
break;
case ir_unop_i2f:
+ case ir_unop_b2f:
+ case ir_unop_b2i:
/* Mesa IR lacks types, ints are stored as truncated floats. */
result_src = op[0];
break;