mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 17:00:09 +01:00
radeonsi: lower NIR resource srcs to descriptors last
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29313>
This commit is contained in:
parent
f493d6fb6f
commit
ae9331694b
1 changed files with 2 additions and 2 deletions
|
|
@ -2353,8 +2353,6 @@ struct nir_shader *si_get_nir_shader(struct si_shader *shader,
|
|||
NIR_PASS(progress, nir, nir_lower_non_uniform_access, &options);
|
||||
}
|
||||
|
||||
NIR_PASS(progress, nir, si_nir_lower_resource, shader, args);
|
||||
|
||||
bool is_last_vgt_stage =
|
||||
(sel->stage == MESA_SHADER_VERTEX ||
|
||||
sel->stage == MESA_SHADER_TESS_EVAL ||
|
||||
|
|
@ -2519,6 +2517,8 @@ struct nir_shader *si_get_nir_shader(struct si_shader *shader,
|
|||
});
|
||||
NIR_PASS(progress, nir, nir_opt_shrink_stores, false);
|
||||
NIR_PASS(progress, nir, ac_nir_lower_global_access);
|
||||
/* This must be after vectorization because it causes bindings_different_restrict() to fail. */
|
||||
NIR_PASS(progress, nir, si_nir_lower_resource, shader, args);
|
||||
|
||||
if (progress) {
|
||||
si_nir_opts(sel->screen, nir, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue