From da23b17c8b250882e470ca7f13087434562c524b Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 19 May 2025 17:42:33 +0100 Subject: [PATCH] nir/opt_if: fix progress reporting with multiple function impls 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_opt_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c index 24dd1348ee8..dd92426ce24 100644 --- a/src/compiler/nir/nir_opt_if.c +++ b/src/compiler/nir/nir_opt_if.c @@ -1447,7 +1447,7 @@ nir_opt_if(nir_shader *shader, nir_opt_if_options options) nir_metadata_require(impl, nir_metadata_block_index | nir_metadata_dominance); - progress = opt_if_safe_cf_list(&b, &impl->body, options); + progress |= opt_if_safe_cf_list(&b, &impl->body, options); nir_progress(true, impl, nir_metadata_control_flow); bool preserve = true;