diff options
author | Eric Anholt <[email protected]> | 2010-06-29 16:39:38 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-06-29 17:18:28 -0700 |
commit | 524745bc55dd23c612aebdb545125727bfb16e4d (patch) | |
tree | 17856349b5f5d910fb81c1152c04a68a78c48862 /src/mesa/shader/ir_to_mesa.cpp | |
parent | ba9bd708cb3480817e18cc47e57d83a4e4c305bb (diff) |
ir_to_mesa: Add support for ir_unop_abs.
Diffstat (limited to 'src/mesa/shader/ir_to_mesa.cpp')
-rw-r--r-- | src/mesa/shader/ir_to_mesa.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |