nir: add filter parameter to nir_lower_array_deref_of_vec

To be used by latter commits to limit the lowering to specific
variables.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29799>
This commit is contained in:
Qiang Yu
2024-06-21 16:26:37 +08:00
committed by Marge Bot
parent 370ed7b021
commit 3151f5ec47
6 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ preprocess_nir(nir_shader *nir)
nir_var_function_temp, 2);
NIR_PASS(_, nir, nir_lower_array_deref_of_vec,
nir_var_mem_ubo | nir_var_mem_ssbo,
nir_var_mem_ubo | nir_var_mem_ssbo, NULL,
nir_lower_direct_array_deref_of_vec_load);
NIR_PASS(_, nir, nir_lower_frexp);