summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-30 16:23:32 -0700
committerEric Anholt <eric@anholt.net>2010-06-30 16:23:32 -0700
commitd6ebe9b16b25f25ba763baf3738addc50676d5d0 (patch)
tree21eba49bd2d484981c3272c37220eb9b02afc0ad
parent02d615306eb930bd6de9f1503ddd54ee33d3b930 (diff)
ir_to_mesa: Add missing no-op type conversions.
Fixes glsl-fs-step.
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index 6542441a8c3..af9bdb54828 100644
--- 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;