st/glsl_to_nir: use nir_shader_gather_info()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Nov 2017 09:32:12 +0000 (20:32 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 8 Nov 2017 06:33:14 +0000 (17:33 +1100)
commit36be8c2fcf94f5d800aed6c3d39ef23b226fd0d5
treefbaad3d4e165240a22939c170a63057e2b3514cc
parentc980a3aa31335b9198814f7bb98e9cde01895444
st/glsl_to_nir: use nir_shader_gather_info()

Use the NIR helper rather than the GLSL IR helper to get in/out
masks. This allows us to ignore varyings removed by NIR
optimisations.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp