From: Eric Anholt Date: Tue, 29 Jun 2010 23:39:38 +0000 (-0700) Subject: ir_to_mesa: Add support for ir_unop_abs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=524745bc55dd23c612aebdb545125727bfb16e4d;p=mesa.git ir_to_mesa: Add support for ir_unop_abs. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index 152cb1d9e55..85ede3e3280 100644 --- a/src/mesa/shader/ir_to_mesa.cpp +++ b/src/mesa/shader/ir_to_mesa.cpp @@ -610,6 +610,10 @@ ir_to_mesa_visitor::visit(ir_expression *ir) op[0].negate = ~op[0].negate; result_src = op[0]; break; + case ir_unop_abs: + ir_to_mesa_emit_op1(ir, OPCODE_ABS, result_dst, op[0]); + break; + case ir_unop_exp: ir_to_mesa_emit_scalar_op1(ir, OPCODE_EXP, result_dst, op[0]); break;