glsl: gather uniform dereference info before main linking loop
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 5 May 2020 04:22:04 +0000 (14:22 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 10:34:22 +0000 (10:34 +0000)
commit7d1eadb7906628af800ab797a7423f79bbcba56c
tree2783ba7cada3b909fccc5b5020864833d4e30d0f
parenta13d8d48ce523acfac5cfe86cdece5abeaf2d097
glsl: gather uniform dereference info before main linking loop

We want to gather information for all stages here before the main
linking loop. In the following patch we will use to information
to reduce the size of uniform arrays where possible.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4910>
src/compiler/glsl/gl_nir_link_uniforms.c