nir: Add a new nir_op_f2u32_rtne

Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41036>
This commit is contained in:
Faith Ekstrand 2026-04-17 08:25:18 -04:00 committed by Marge Bot
parent 55c4595b2a
commit 0d549f5bde

View file

@ -410,6 +410,7 @@ unop_numeric_convert_mp("i2f", tfloat16, tint32, preserve_sz + preserve_inf + ex
unop_numeric_convert_mp("u2f", tfloat16, tuint32, preserve_sz + preserve_inf + exact)
unop_numeric_convert("f2i32_rtne", tint32, tfloat32, "(int32_t)_mesa_roundevenf(src0)", valid_fp_math_ctrl = exact)
unop_numeric_convert("f2u32_rtne", tuint32, tfloat32, "(uint32_t)_mesa_roundevenf(src0)", valid_fp_math_ctrl = exact)
# Note: 64-bit integers are intentionally not supported. Casting u_uintN_max
# (and related signed values) to double is precisely representable for upto