mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
radeonsi: lower descriptors sooner to allow vectorizing descriptor loads
The comment was wrong. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29399>
This commit is contained in:
parent
abd5216ae8
commit
e0c343888f
1 changed files with 1 additions and 3 deletions
|
|
@ -2600,6 +2600,7 @@ static struct nir_shader *si_get_nir_shader(struct si_shader *shader, struct si_
|
|||
NIR_PASS(progress, nir, nir_lower_io_to_scalar,
|
||||
nir_var_mem_ubo | nir_var_mem_ssbo | nir_var_mem_shared | nir_var_mem_global,
|
||||
ac_nir_scalarize_overfetching_loads_callback, &sel->screen->info.gfx_level);
|
||||
NIR_PASS(progress, nir, si_nir_lower_resource, shader, args);
|
||||
|
||||
if (progress) {
|
||||
si_nir_opts(sel->screen, nir, false);
|
||||
|
|
@ -2638,9 +2639,6 @@ static struct nir_shader *si_get_nir_shader(struct si_shader *shader, struct si_
|
|||
}
|
||||
}
|
||||
|
||||
/* This must be after vectorization because it causes bindings_different_restrict() to fail. */
|
||||
NIR_PASS(progress, nir, si_nir_lower_resource, shader, args);
|
||||
|
||||
/* This must be after lowering resources to descriptor loads and before lowering intrinsics
|
||||
* to args and lowering int64.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue