mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
glsl: Add trunc() to ir_builder.
This commit is contained in:
parent
d91390634f
commit
a5455ab1ca
2 changed files with 6 additions and 0 deletions
|
|
@ -246,6 +246,11 @@ ir_expression *borrow(operand a, operand b)
|
|||
return expr(ir_binop_borrow, a, b);
|
||||
}
|
||||
|
||||
ir_expression *trunc(operand a)
|
||||
{
|
||||
return expr(ir_unop_trunc, a);
|
||||
}
|
||||
|
||||
ir_expression *round_even(operand a)
|
||||
{
|
||||
return expr(ir_unop_round_even, a);
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ ir_expression *imul_high(operand a, operand b);
|
|||
ir_expression *div(operand a, operand b);
|
||||
ir_expression *carry(operand a, operand b);
|
||||
ir_expression *borrow(operand a, operand b);
|
||||
ir_expression *trunc(operand a);
|
||||
ir_expression *round_even(operand a);
|
||||
ir_expression *dot(operand a, operand b);
|
||||
ir_expression *clamp(operand a, operand b, operand c);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue