glsl: move nir link uniforms struct defs earlier
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 10 Jan 2020 02:54:47 +0000 (13:54 +1100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 6 Mar 2020 23:22:14 +0000 (23:22 +0000)
commit51898c8ee5edb21ac2d8cf9557dca5416ea9a304
tree51076eba3865b07ed5292908768d08c7f74af40d
parent4d5a0ae22cf9ad893ddb10fca48e85e5dbf9c80c
glsl: move nir link uniforms struct defs earlier

We will need to use the state in more of the helper functions in
the following patches.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4050>
src/compiler/glsl/gl_nir_link_uniforms.c