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
|
@ -314,6 +314,12 @@ exp(operand a)
|
||||||
return expr(ir_unop_exp, a);
|
return expr(ir_unop_exp, a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ir_expression *
|
||||||
|
rcp(operand a)
|
||||||
|
{
|
||||||
|
return expr(ir_unop_rcp, a);
|
||||||
|
}
|
||||||
|
|
||||||
ir_expression *
|
ir_expression *
|
||||||
rsq(operand a)
|
rsq(operand a)
|
||||||
{
|
{
|
||||||
|
|
|
@ -148,6 +148,7 @@ ir_expression *neg(operand a);
|
||||||
ir_expression *sin(operand a);
|
ir_expression *sin(operand a);
|
||||||
ir_expression *cos(operand a);
|
ir_expression *cos(operand a);
|
||||||
ir_expression *exp(operand a);
|
ir_expression *exp(operand a);
|
||||||
|
ir_expression *rcp(operand a);
|
||||||
ir_expression *rsq(operand a);
|
ir_expression *rsq(operand a);
|
||||||
ir_expression *sqrt(operand a);
|
ir_expression *sqrt(operand a);
|
||||||
ir_expression *log(operand a);
|
ir_expression *log(operand a);
|
||||||
|
|
Loading…
Reference in New Issue