glsl: add f2f16() helper to ir_builder

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18540>
This commit is contained in:
Timothy Arceri
2022-11-08 12:13:36 +11:00
committed by Marge Bot
parent 94865a45f8
commit eea1c1fa7b
2 changed files with 8 additions and 0 deletions

View File

@@ -553,6 +553,12 @@ interpolate_at_sample(operand a, operand b)
return expr(ir_binop_interpolate_at_sample, a, b);
}
ir_expression *
f2f16(operand a)
{
return expr(ir_unop_f2f16, a);
}
ir_expression *
f2d(operand a)
{

View File

@@ -180,6 +180,8 @@ ir_expression *i2b(operand a);
ir_expression *f2b(operand a);
ir_expression *b2f(operand a);
ir_expression *f2f16(operand a);
ir_expression *f2d(operand a);
ir_expression *i2d(operand a);
ir_expression *u2d(operand a);