mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
glsl/ir_builder: Add rcp builder.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
This commit is contained in:
parent
6643a97de3
commit
7ec3af3f8f
2 changed files with 7 additions and 0 deletions
|
|
@ -314,6 +314,12 @@ exp(operand a)
|
|||
return expr(ir_unop_exp, a);
|
||||
}
|
||||
|
||||
ir_expression *
|
||||
rcp(operand a)
|
||||
{
|
||||
return expr(ir_unop_rcp, a);
|
||||
}
|
||||
|
||||
ir_expression *
|
||||
rsq(operand a)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@ ir_expression *neg(operand a);
|
|||
ir_expression *sin(operand a);
|
||||
ir_expression *cos(operand a);
|
||||
ir_expression *exp(operand a);
|
||||
ir_expression *rcp(operand a);
|
||||
ir_expression *rsq(operand a);
|
||||
ir_expression *sqrt(operand a);
|
||||
ir_expression *log(operand a);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue