radeonsi: call si_nir_mark_divergent_texture_non_uniform later

it doesn't have to be called in finalize_nir

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802>
This commit is contained in:
Marek Olšák 2025-11-21 12:52:15 -05:00 committed by Marge Bot
parent 314e81def5
commit 7f7dbf68f4
2 changed files with 2 additions and 2 deletions

View file

@ -812,6 +812,8 @@ static void run_pre_link_optimization_passes(struct si_nir_shader_ctx *ctx)
/* Lower all other indirect indexing to if-else ladders or scratch. */
progress |= ac_nir_lower_indirect_derefs(nir, sel->screen->info.gfx_level);
NIR_PASS(_, nir, si_nir_mark_divergent_texture_non_uniform);
if (progress)
si_nir_opts(shader->selector->screen, nir, false);
}

View file

@ -435,6 +435,4 @@ void si_finalize_nir(struct pipe_screen *screen, struct nir_shader *nir,
NIR_PASS(progress, nir, nir_opt_large_constants, glsl_get_natural_size_align_bytes, 16);
if (progress)
si_nir_opts(sscreen, nir, false);
NIR_PASS(_, nir, si_nir_mark_divergent_texture_non_uniform);
}