intel/nir: Call nir_opt_deref in brw_nir_optimize

It's an optimization so we should probably be calling it in the
optimization loop.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
Jason Ekstrand
2019-01-11 14:33:17 -06:00
parent e57e26121a
commit 24c8108ea6

View File

@@ -544,6 +544,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
progress = false;
OPT(nir_split_array_vars, nir_var_function);
OPT(nir_shrink_vec_array_vars, nir_var_function);
OPT(nir_opt_deref);
OPT(nir_lower_vars_to_ssa);
if (allow_copies) {
/* Only run this pass in the first call to brw_nir_optimize. Later