glsl: add struct to gather more info about uniform array access
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 5 May 2020 04:13:51 +0000 (14:13 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 10:34:22 +0000 (10:34 +0000)
commit6aea287b0a14e5634275d6116b319211885d3b8e
tree5008ed3b3158201aa959e554d16ba54567638568
parentd6d78f9b7ff02354af3ac8a918bb5cec6c4718e8
glsl: add struct to gather more info about uniform array access

This will be used in the following patches to allow the linker
to resize uniform arrays based on array dereferences.

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