nir/linker: Fill the uniform's BLOCK_INDEX
authorAntia Puentes <apuentes@igalia.com>
Sat, 25 Aug 2018 13:15:30 +0000 (15:15 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 12 Jul 2019 21:42:41 +0000 (23:42 +0200)
commita638971929a4f7a3f3f4796f92c4edec8ec4c8ae
treed4465f1dbed03c08842191578492b3297de6c4f3
parentf239e22813fe1d10ceb4ca799848e180e3cd0430
nir/linker: Fill the uniform's BLOCK_INDEX

Binding comparison is used to determine the block the uniform is part
of. Note that to do the binding comparison we need the information in
UniformBlocks[] and ShaderStorageBlocks[] to be available, so we have
to call gl_nir_link_uniform_blocks() before linking the uniforms.

v2: add missing break (Timothy)

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/gl_nir_link_uniforms.c