st/glsl_to_nir: generate NIR earlier
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Nov 2017 06:28:09 +0000 (17:28 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 8 Nov 2017 06:33:14 +0000 (17:33 +1100)
commitc980a3aa31335b9198814f7bb98e9cde01895444
treefe398cd5bf9eb7afd97c09be224aa730d8dc2da1
parentf6c0504abc486536175ce879042df7110861152e
st/glsl_to_nir: generate NIR earlier

We want to use nir_shader_gather_info() the GLSL IR version might
be including varyings that NIR later eliminates. To do this we
need to generate NIR before we we start using the in/out bitmasks.

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