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 };