diff --git a/src/compiler/nir/nir_lower_int_to_float.c b/src/compiler/nir/nir_lower_int_to_float.c index 2a9b6803493..5e20c71a317 100644 --- a/src/compiler/nir/nir_lower_int_to_float.c +++ b/src/compiler/nir/nir_lower_int_to_float.c @@ -49,6 +49,8 @@ lower_alu_instr(nir_builder *b, nir_alu_instr *alu) return false; } + b->cursor = nir_before_instr(&alu->instr); + /* Replacement SSA value */ nir_ssa_def *rep = NULL; switch (alu->op) {