st/nir: Call st_glsl_to_nir_post_opts before interface unification
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Tue, 8 Sep 2020 10:22:12 +0000 (13:22 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Sep 2020 18:21:44 +0000 (18:21 +0000)
commit03eec294b90759be48b5c85fda5e54bed683068f
tree1ff1c03a88039da4dbdc011e84422c2fc3063bb1
parentcdc025c9ef67bddf733fccb5b3e78d8d7c8b4880
st/nir: Call st_glsl_to_nir_post_opts before interface unification

Since 95415a54c007a909f0fb9d1b2567beecbd73d403 st_finalize_nir_before_variants
calls to nir_shader_gather_info, so finalization should be moved
before interface unification.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3482
Fixes: 95415a54c007a909f0fb9d1b2567beecbd73d403
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6647>
src/mesa/state_tracker/st_glsl_to_nir.cpp