st/glsl_to_nir: call nir_lower_load_const_to_scalar() in the st
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 11 Dec 2018 04:06:37 +0000 (15:06 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 2 Jan 2019 01:19:17 +0000 (12:19 +1100)
commit0a4378ce562dbf68b7b58165f2dcfc94f831559f
tree29f962c5a0aea31b51a9defbb96da8c76be669f6
parent2ef0f944f55ed5ba993b033d7ce54f531688b858
st/glsl_to_nir: call nir_lower_load_const_to_scalar() in the st

This will help the new opt introduced in the following patches
allowing us to remove extra duplicate varyings.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/radeonsi/si_shader_nir.c
src/mesa/state_tracker/st_glsl_to_nir.cpp