Mesa (glsl2): ir_to_mesa: Add missing no-op type conversions.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Jul 1 00:34:31 UTC 2010
Module: Mesa
Branch: glsl2
Commit: d6ebe9b16b25f25ba763baf3738addc50676d5d0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d6ebe9b16b25f25ba763baf3738addc50676d5d0
Author: Eric Anholt <eric at anholt.net>
Date: Wed Jun 30 16:23:32 2010 -0700
ir_to_mesa: Add missing no-op type conversions.
Fixes glsl-fs-step.
---
src/mesa/shader/ir_to_mesa.cpp | 2 ++
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 6542441..af9bdb5 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;
More information about the mesa-commit
mailing list