glsl: tidy up uniform storage value count code in NIR linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Feb 2020 02:17:02 +0000 (13:17 +1100)
committerMarge Bot <eric+marge@anholt.net>
Sat, 18 Apr 2020 11:50:44 +0000 (11:50 +0000)
commit723edf859ff2cf7dd0d4c2cb01a7d941af055265
tree49f9166de4ec202e65f66639be7ed114ab38591a
parent3e2dbb6e7059f3ebe5a6e9f4633e923e29bcc705
glsl: tidy up uniform storage value count code in NIR linker

This makes the code cleaner and better reflects what the existing
glsl IR  linker does possibly fixing subtle bugs.

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