ir_to_mesa: Add missing no-op type conversions.

Fixes glsl-fs-step.
This commit is contained in:
Eric Anholt
2010-06-30 16:23:32 -07:00
parent 02d615306e
commit d6ebe9b16b

View File

@@ -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;