mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
glsl/ir_builder: Add support for some 64-bit bitcasts.
We need builder support to implement some of the builtins. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
78cc44280e
commit
25c7a61b28
2 changed files with 30 additions and 0 deletions
|
|
@ -518,6 +518,30 @@ b2f(operand a)
|
|||
return expr(ir_unop_b2f, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
bitcast_d2i64(operand a)
|
||||
{
|
||||
return expr(ir_unop_bitcast_d2i64, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
bitcast_d2u64(operand a)
|
||||
{
|
||||
return expr(ir_unop_bitcast_d2u64, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
bitcast_i642d(operand a)
|
||||
{
|
||||
return expr(ir_unop_bitcast_i642d, a);
|
||||
}
|
||||
|
||||
ir_expression*
|
||||
bitcast_u642d(operand a)
|
||||
{
|
||||
return expr(ir_unop_bitcast_u642d, a);
|
||||
}
|
||||
|
||||
ir_expression *
|
||||
interpolate_at_centroid(operand a)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -191,6 +191,12 @@ ir_expression *f2d(operand a);
|
|||
ir_expression *i2d(operand a);
|
||||
ir_expression *u2d(operand a);
|
||||
|
||||
ir_expression *bitcast_d2i64(operand a);
|
||||
ir_expression *bitcast_d2u64(operand a);
|
||||
|
||||
ir_expression *bitcast_i642d(operand a);
|
||||
ir_expression *bitcast_u642d(operand a);
|
||||
|
||||
ir_expression *min2(operand a, operand b);
|
||||
ir_expression *max2(operand a, operand b);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue