Mesa (master): st/nir: Use gl_nir_opt_access
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 19 12:19:10 UTC 2019
Module: Mesa
Branch: master
Commit: 6fc83c253f5b6eacf9497558173c1b01262facb9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fc83c253f5b6eacf9497558173c1b01262facb9
Author: Connor Abbott <cwabbott0 at gmail.com>
Date: Tue Jun 4 14:18:54 2019 +0200
st/nir: Use gl_nir_opt_access
Nothing uses its results yet, that will come with the following commits.
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
---
src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 ++
1 file changed, 2 insertions(+)
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) {
More information about the mesa-commit
mailing list