glsl: add update_array_sizes() helper to the NIR uniform linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 5 May 2020 04:18:23 +0000 (14:18 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 10:34:22 +0000 (10:34 +0000)
commita13d8d48ce523acfac5cfe86cdece5abeaf2d097
treef4120cfbe263867f7033ad4fb3eb180b331bf919
parent6aea287b0a14e5634275d6116b319211885d3b8e
glsl: add update_array_sizes() helper to the NIR uniform linker

This will be used to reduce the size of uniform arrays and replace
the current glsl ir pass. Doing this in NIR allows us to better
optimise the size of uniform arrays.

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