[Mesa-dev] [PATCH] ir_to_mesa: handle ir_unop_i2u and ir_unop_u2i

Bryan Cain bryancain3 at gmail.com
Sun Apr 17 23:09:43 PDT 2011


---
 src/mesa/program/ir_to_mesa.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 3c9b973..66ceb35 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -1298,6 +1298,8 @@ ir_to_mesa_visitor::visit(ir_expression *ir)
    case ir_unop_i2f:
    case ir_unop_b2f:
    case ir_unop_b2i:
+   case ir_unop_i2u:
+   case ir_unop_u2i:
       /* Mesa IR lacks types, ints are stored as truncated floats. */
       result_src = op[0];
       break;
-- 
1.7.1



More information about the mesa-dev mailing list