aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2019-06-04 14:18:54 +0200
committerConnor Abbott <[email protected]>2019-06-19 14:08:28 +0200
commit6fc83c253f5b6eacf9497558173c1b01262facb9 (patch)
treea72c2b1e9ab2fa5d4f5f9a7ffcd50ba135bd6d60 /src/mesa/state_tracker
parentf2d0e48ddc74d01be1d3e259c5687ff37e4c8d69 (diff)
st/nir: Use gl_nir_opt_access
Nothing uses its results yet, that will come with the following commits. Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_nir.cpp2
1 files changed, 2 insertions, 0 deletions
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) {