From: Eric Anholt Date: Thu, 1 Jul 2010 00:06:06 +0000 (-0700) Subject: ir_to_mesa: Add support for ir_unop_sign. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3acd92a91f3e799b9f839a074f4d76a0e88d71fe;p=mesa.git ir_to_mesa: Add support for ir_unop_sign. Fixes glsl-fs-sign, glsl-vs-sign. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index af9bdb54828..b140d96851f 100644 --- a/src/mesa/shader/ir_to_mesa.cpp +++ b/src/mesa/shader/ir_to_mesa.cpp @@ -615,6 +615,9 @@ ir_to_mesa_visitor::visit(ir_expression *ir) case ir_unop_abs: ir_to_mesa_emit_op1(ir, OPCODE_ABS, result_dst, op[0]); break; + case ir_unop_sign: + ir_to_mesa_emit_op1(ir, OPCODE_SSG, result_dst, op[0]); + break; case ir_unop_exp: ir_to_mesa_emit_scalar_op1(ir, OPCODE_EXP, result_dst, op[0]);