mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
glsl: Add bitcast_i2f() to ir_builder.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
3d1b01662b
commit
6bfb1a8344
2 changed files with 28 additions and 0 deletions
|
|
@ -303,12 +303,24 @@ f2i(operand a)
|
|||
return expr(ir_unop_f2i, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
bitcast_f2i(operand a)
|
||||
{
|
||||
return expr(ir_unop_bitcast_f2i, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
i2f(operand a)
|
||||
{
|
||||
return expr(ir_unop_i2f, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
bitcast_i2f(operand a)
|
||||
{
|
||||
return expr(ir_unop_bitcast_i2f, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
i2u(operand a)
|
||||
{
|
||||
|
|
@ -327,12 +339,24 @@ f2u(operand a)
|
|||
return expr(ir_unop_f2u, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
bitcast_f2u(operand a)
|
||||
{
|
||||
return expr(ir_unop_bitcast_f2u, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
u2f(operand a)
|
||||
{
|
||||
return expr(ir_unop_u2f, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
bitcast_u2f(operand a)
|
||||
{
|
||||
return expr(ir_unop_bitcast_u2f, a);
|
||||
}
|
||||
|
||||
ir_if*
|
||||
if_tree(operand condition,
|
||||
ir_instruction *then_branch)
|
||||
|
|
|
|||
|
|
@ -151,9 +151,13 @@ ir_expression *lshift(operand a, operand b);
|
|||
ir_expression *rshift(operand a, operand b);
|
||||
|
||||
ir_expression *f2i(operand a);
|
||||
ir_expression *bitcast_f2i(operand a);
|
||||
ir_expression *i2f(operand a);
|
||||
ir_expression *bitcast_i2f(operand a);
|
||||
ir_expression *f2u(operand a);
|
||||
ir_expression *bitcast_f2u(operand a);
|
||||
ir_expression *u2f(operand a);
|
||||
ir_expression *bitcast_u2f(operand a);
|
||||
ir_expression *i2u(operand a);
|
||||
ir_expression *u2i(operand a);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue