From: Eric Anholt Date: Thu, 1 Jul 2010 18:23:02 +0000 (-0700) Subject: ir_to_mesa: Add support for ir_unop_rcp. X-Git-Tag: 062012170305~10660^2~530 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8761fcc2bf964d26c70229c712ce446dbe504ab7;p=profile%2Fivi%2Fmesa.git ir_to_mesa: Add support for ir_unop_rcp. This isn't used at the moment, but will be soon. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index 25267d7..dca2b10 100644 --- a/src/mesa/shader/ir_to_mesa.cpp +++ b/src/mesa/shader/ir_to_mesa.cpp @@ -618,6 +618,9 @@ ir_to_mesa_visitor::visit(ir_expression *ir) case ir_unop_sign: ir_to_mesa_emit_op1(ir, OPCODE_SSG, result_dst, op[0]); break; + case ir_unop_rcp: + ir_to_mesa_emit_scalar_op1(ir, OPCODE_RCP, result_dst, op[0]); + break; case ir_unop_exp: ir_to_mesa_emit_scalar_op1(ir, OPCODE_EXP, result_dst, op[0]);