[Mesa-dev] [PATCH 4/7] ir_to_mesa: Add support for ir_unop_f2u to ir_to_mesa backend.

Kenneth Graunke kenneth at whitecape.org
Thu Jun 14 13:54:22 PDT 2012


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 <kenneth at whitecape.org>

I don't know anything about gallivm so I'm not planning to comment on 6.


More information about the mesa-dev mailing list