From dd9725720975404e890ab75c6b049c74c0e4e097 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Tue, 12 May 2026 17:11:48 +0200 Subject: [PATCH] nir/lower_bit_size: Preserve float controls when lowering alu ops fp_math_ctrl should be preserved when recreating alu operations. Signed-off-by: Mary Guillemard Reviewed-by: Georg Lehmann Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15455 Cc: mesa-stable Part-of: --- src/compiler/nir/nir_lower_bit_size.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_lower_bit_size.c b/src/compiler/nir/nir_lower_bit_size.c index 9f887bb2d0e..c5596e4d5dc 100644 --- a/src/compiler/nir/nir_lower_bit_size.c +++ b/src/compiler/nir/nir_lower_bit_size.c @@ -88,6 +88,7 @@ lower_alu_instr(nir_builder *bld, nir_alu_instr *alu, unsigned bit_size) unsigned dst_bit_size = alu->def.bit_size; bld->cursor = nir_before_instr(&alu->instr); + bld->fp_math_ctrl = alu->fp_math_ctrl; /* Convert each source to the requested bit-size */ nir_def *srcs[NIR_MAX_VEC_COMPONENTS] = { NULL };