ir_to_mesa: Add support for ir_unop_f2u to ir_to_mesa backend.
authorPaul Berry <stereotype441@gmail.com>
Wed, 13 Jun 2012 22:49:46 +0000 (15:49 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 15 Jun 2012 15:58:55 +0000 (08:58 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/ir_to_mesa.cpp

index 22454000509fe33e5b62e7f9d9a9c88894aaa499..217a264559a4179b57937db783ef023d8605fc23 100644 (file)
@@ -1400,6 +1400,7 @@ ir_to_mesa_visitor::visit(ir_expression *ir)
       result_src = op[0];
       break;
    case ir_unop_f2i:
+   case ir_unop_f2u:
       emit(ir, OPCODE_TRUNC, result_dst, op[0]);
       break;
    case ir_unop_f2b: