From 0d549f5bdeb93944892bcb6cfd0af951bc24a39b Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Fri, 17 Apr 2026 08:25:18 -0400 Subject: [PATCH] nir: Add a new nir_op_f2u32_rtne Reviewed-by: Christoph Pillmayer Reviewed-by: Lorenzo Rossi Part-of: --- src/compiler/nir/nir_opcodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py index 03cb99cc6df..e748aeaafa7 100644 --- a/src/compiler/nir/nir_opcodes.py +++ b/src/compiler/nir/nir_opcodes.py @@ -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