From: Paul Berry Date: Wed, 13 Jun 2012 22:50:06 +0000 (-0700) Subject: gallium: Add support for ir_unop_f2u to tgsi backend. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1be766111005e483d56ac194c224123e72ce9831;p=mesa.git gallium: Add support for ir_unop_f2u to tgsi backend. Reviewed-by: José Fonseca Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 347a22f19cb..5802b52b749 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -1762,6 +1762,12 @@ glsl_to_tgsi_visitor::visit(ir_expression *ir) else emit(ir, TGSI_OPCODE_TRUNC, result_dst, op[0]); break; + case ir_unop_f2u: + if (native_integers) + emit(ir, TGSI_OPCODE_F2U, result_dst, op[0]); + else + emit(ir, TGSI_OPCODE_TRUNC, result_dst, op[0]); + break; case ir_unop_bitcast_f2i: case ir_unop_bitcast_f2u: case ir_unop_bitcast_i2f: