From 24c8108ea6ac2fb71f9fff7c05354114319c0fc9 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 11 Jan 2019 14:33:17 -0600 Subject: [PATCH] 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 --- src/intel/compiler/brw_nir.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2