From 12b903d38416a89b9801b8ac61904ff5f3efa9fa Mon Sep 17 00:00:00 2001 From: Mel Henning Date: Fri, 30 May 2025 14:35:42 -0400 Subject: [PATCH] nak: lower_scan_reduce after divergence analysis Reviewed-by: Faith Ekstrand Part-of: --- src/nouveau/compiler/nak_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nouveau/compiler/nak_nir.c b/src/nouveau/compiler/nak_nir.c index 6d2648433df..b1f3e1167c8 100644 --- a/src/nouveau/compiler/nak_nir.c +++ b/src/nouveau/compiler/nak_nir.c @@ -965,7 +965,6 @@ nak_postprocess_nir(nir_shader *nir, // On Kepler we need to lower shared atomics into locked ld-st OPT(nir, nak_nir_lower_kepler_shared_atomics); } - OPT(nir, nak_nir_lower_scan_reduce); if (nir_shader_has_local_variables(nir)) { OPT(nir, nir_lower_vars_to_explicit_types, nir_var_function_temp, @@ -999,6 +998,7 @@ nak_postprocess_nir(nir_shader *nir, nir_divergence_analysis(nir); if (nir->info.stage == MESA_SHADER_FRAGMENT) OPT(nir, nir_opt_tex_skip_helpers, true); + OPT(nir, nak_nir_lower_scan_reduce); nak_optimize_nir(nir, nak);