diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-01 11:23:02 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-01 11:23:02 -0700 |
commit | 8761fcc2bf964d26c70229c712ce446dbe504ab7 (patch) | |
tree | deb6f4875df328699437cd4f171025483452af30 /src/mesa/shader/ir_to_mesa.cpp | |
parent | d1b07167b947715577a45b9d9b256c846f3964c6 (diff) |
ir_to_mesa: Add support for ir_unop_rcp.
This isn't used at the moment, but will be soon.
Diffstat (limited to 'src/mesa/shader/ir_to_mesa.cpp')
-rw-r--r-- | src/mesa/shader/ir_to_mesa.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index 25267d79b5..dca2b10f23 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]); |