radv: shrink shared arrays

Foz-DB Navi21:
Totals from 2 (0.00% of 80255) affected shaders:
No stat changes.

Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26388>
This commit is contained in:
Georg Lehmann
2023-11-28 16:43:36 +01:00
committed by Marge Bot
parent c7df3b4f64
commit 8360c3e81c
+1 -1
View File
@@ -168,7 +168,7 @@ radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively)
progress = false;
NIR_LOOP_PASS(progress, skip, shader, nir_split_array_vars, nir_var_function_temp);
NIR_LOOP_PASS(progress, skip, shader, nir_shrink_vec_array_vars, nir_var_function_temp);
NIR_LOOP_PASS(progress, skip, shader, nir_shrink_vec_array_vars, nir_var_function_temp | nir_var_mem_shared);
if (!shader->info.var_copies_lowered) {
/* Only run this pass if nir_lower_var_copies was not called