From: Connor Abbott Date: Tue, 4 Jun 2019 12:18:54 +0000 (+0200) Subject: st/nir: Use gl_nir_opt_access X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fc83c253f5b6eacf9497558173c1b01262facb9;p=mesa.git st/nir: Use gl_nir_opt_access Nothing uses its results yet, that will come with the following commits. Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index e4303b0250c..97dfe7a54a2 100644 --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp @@ -359,6 +359,8 @@ st_nir_opts(nir_shader *nir, bool scalar) lower_flrp = 0; } + NIR_PASS(progress, nir, gl_nir_opt_access); + NIR_PASS(progress, nir, nir_opt_undef); NIR_PASS(progress, nir, nir_opt_conditional_discard); if (nir->options->max_unroll_iterations) {