From 06dbd4c33cd1c91cfd6064337230adac1daf96ed Mon Sep 17 00:00:00 2001 From: Aitor Camacho Date: Fri, 19 Sep 2025 17:07:13 +0200 Subject: [PATCH] nir: Set cursor in lower_sampler_lod_bias MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Alyssa Anne Rosenzweig Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_lower_tex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_lower_tex.c b/src/compiler/nir/nir_lower_tex.c index 28eb18bac0e..28aca6f6a78 100644 --- a/src/compiler/nir/nir_lower_tex.c +++ b/src/compiler/nir/nir_lower_tex.c @@ -1484,6 +1484,7 @@ nir_lower_lod_zero_width(nir_builder *b, nir_tex_instr *tex) static void lower_sampler_lod_bias(nir_builder *b, nir_tex_instr *tex) { + b->cursor = nir_before_instr(&tex->instr); nir_def *bias = nir_build_texture_query(b, tex, nir_texop_lod_bias, 1, nir_type_float16, false, false);