[3/3] st/nir: Call nir_gather_info in st_finalize_nir.

Submitted by Kenneth Graunke on Aug. 25, 2018, 1:24 a.m.

Details

Message ID 20180825012427.17158-3-kenneth@whitecape.org
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Kenneth Graunke Aug. 25, 2018, 1:24 a.m.
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(+)

Patch hide | download patch | download mbox

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" */