nir/opt_if: fix progress reporting with multiple function impls

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35069>
This commit is contained in:
Rhys Perry 2025-05-19 17:42:33 +01:00 committed by Marge Bot
parent 591b498e1f
commit da23b17c8b

View file

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