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:
@@ -1119,7 +1119,7 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir,
|
||||
* messages.
|
||||
*/
|
||||
OPT(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);
|
||||
|
||||
/* Clamp load_per_vertex_input of the TCS stage so that we do not generate
|
||||
|
||||
@@ -1001,7 +1001,7 @@ elk_preprocess_nir(const struct elk_compiler *compiler, nir_shader *nir,
|
||||
* messages.
|
||||
*/
|
||||
OPT(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);
|
||||
|
||||
/* Get rid of split copies */
|
||||
|
||||
Reference in New Issue
Block a user