From 12ee2b0fd4b46958eacd11212df48a67cb39ef47 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 16 May 2025 16:46:48 +0100 Subject: [PATCH] nir: fix progress reporting in nir_io_add_const_offset_to_base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_io_add_const_offset_to_base.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_io_add_const_offset_to_base.c b/src/compiler/nir/nir_io_add_const_offset_to_base.c index 7bc49cd03a0..e72f1798068 100644 --- a/src/compiler/nir/nir_io_add_const_offset_to_base.c +++ b/src/compiler/nir/nir_io_add_const_offset_to_base.c @@ -107,10 +107,12 @@ add_const_offset_to_base_block(nir_block *block, nir_builder *b, sem.location += off; b->cursor = nir_before_instr(&intrin->instr); nir_src_rewrite(offset, nir_imm_int(b, 0)); - progress = true; } /* non-indirect indexing should reduce num_slots */ sem.num_slots = is_dual_slot(intrin) ? 2 : 1; + + nir_io_semantics original = nir_intrinsic_io_semantics(intrin); + progress |= memcmp(&original, &sem, sizeof(sem)); nir_intrinsic_set_io_semantics(intrin, sem); } }