mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
ir_to_mesa: Add support for ir_unop_abs.
This commit is contained in:
parent
ba9bd708cb
commit
524745bc55
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue