On 06/13/2012 05:14 PM, Paul Berry wrote:
--- src/mesa/program/ir_to_mesa.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 2245400..217a264 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -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:
ir_to_mesa doesn't support uints, so this is kind of moot. However, this is as good as any solution, so
Patches 1-5 and 7 are: Reviewed-by: Kenneth Graunke <[email protected]> I don't know anything about gallivm so I'm not planning to comment on 6. _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
