[Mesa-dev] [PATCH 3/3] st/nir: Call nir_gather_info in st_finalize_nir.
Kenneth Graunke
kenneth at whitecape.org
Sat Aug 25 01:24:27 UTC 2018
Several of the passes change varyings. This is necessary for
inputs_read and outputs_written to be accurate.
---
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 ae2c49960c9..7d4c20730c3 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -857,6 +857,8 @@ st_finalize_nir(struct st_context *st, struct gl_program *prog,
NIR_PASS_V(nir, gl_nir_lower_samplers_as_deref, shader_program);
else
NIR_PASS_V(nir, gl_nir_lower_samplers, shader_program);
+
+ nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
}
} /* extern "C" */
--
2.18.0
More information about the mesa-dev
mailing list