From: Jason Ekstrand Date: Fri, 11 Jan 2019 20:33:17 +0000 (-0600) Subject: intel/nir: Call nir_opt_deref in brw_nir_optimize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24c8108ea6ac2fb71f9fff7c05354114319c0fc9;p=mesa.git 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 --- diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 749c00ebcc6..92d7fe4bede 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -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