pco: add lower_io_array_vars_to_elements_no_indirects to preprocessing

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta
2025-04-09 00:59:24 +01:00
committed by Marge Bot
parent 9f7ec39f5a
commit 2424b31870
+10
View File
@@ -551,6 +551,16 @@ void pco_preprocess_nir(pco_ctx *ctx, nir_shader *nir)
nir_var_function_temp | nir_var_shader_temp,
NULL);
NIR_PASS(_,
nir,
nir_io_add_const_offset_to_base,
nir_var_shader_in | nir_var_shader_out);
NIR_PASS(_,
nir,
nir_lower_io_array_vars_to_elements_no_indirects,
nir->info.stage == MESA_SHADER_VERTEX);
pco_nir_opt(ctx, nir);
if (pco_should_print_nir(nir)) {