nir: Add mode filtering to lower_mem_access_bit_sizes

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: M Henning <drawoc@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21524>
This commit is contained in:
Faith Ekstrand
2023-02-21 11:45:49 -06:00
committed by Marge Bot
parent 4b06b1a7c5
commit 116a851264
3 changed files with 49 additions and 2 deletions

View File

@@ -1368,7 +1368,15 @@ brw_vectorize_lower_mem_access(nir_shader *nir,
OPT(nir_opt_load_store_vectorize, &options);
}
OPT(nir_lower_mem_access_bit_sizes, get_mem_access_size_align, NULL);
OPT(nir_lower_mem_access_bit_sizes,
nir_var_mem_ssbo |
nir_var_mem_constant |
nir_var_mem_task_payload |
nir_var_shader_temp |
nir_var_function_temp |
nir_var_mem_global |
nir_var_mem_shared,
get_mem_access_size_align, NULL);
while (progress) {
progress = false;