mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-08 07:50:27 +01:00
brw: run opt_deref only once
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39513>
This commit is contained in:
parent
73fa431bff
commit
99d22bc35e
1 changed files with 2 additions and 1 deletions
|
|
@ -1395,7 +1395,6 @@ brw_nir_optimize(nir_shader *nir,
|
|||
if (nir->info.stage != MESA_SHADER_KERNEL)
|
||||
LOOP_OPT(nir_split_array_vars, nir_var_function_temp);
|
||||
LOOP_OPT(nir_shrink_vec_array_vars, nir_var_function_temp);
|
||||
LOOP_OPT(nir_opt_deref);
|
||||
LOOP_OPT(nir_lower_vars_to_ssa);
|
||||
if (!nir->info.var_copies_lowered) {
|
||||
/* Only run this pass if nir_lower_var_copies was not called
|
||||
|
|
@ -1687,6 +1686,8 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir,
|
|||
|
||||
brw_nir_optimize(nir, devinfo);
|
||||
|
||||
OPT(nir_opt_deref);
|
||||
|
||||
unsigned lower_flrp =
|
||||
(nir->options->lower_flrp16 ? 16 : 0) |
|
||||
(nir->options->lower_flrp32 ? 32 : 0) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue