st/glsl_to_nir: delay adding built-in uniforms to Parameters list
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Nov 2017 03:15:22 +0000 (14:15 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 8 Nov 2017 06:33:14 +0000 (17:33 +1100)
commitf6c0504abc486536175ce879042df7110861152e
tree945a7cec9f3211dea2a4e32dcef20bdd0ed9a4fc
parent7f33e94e43a647d71a9f930cf3180e5abb529edd
st/glsl_to_nir: delay adding built-in uniforms to Parameters list

Delaying adding built-in uniforms until after we convert to NIR
gives us a better chance to optimise them away. Also NIR allows
us to iterate over the uniforms directly so should be faster.

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