glsl/linker: remove ubo explicit binding handling
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 24 Jan 2018 10:03:00 +0000 (11:03 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 9 Feb 2018 07:32:42 +0000 (08:32 +0100)
commitf32b01ca435c5eb4268919f984e6e3d63c28828f
tree934bb59d148366bf7f2303f0f6ed36929ddd371c
parent77cb2fc0bd8f57b646ef5ab674c1f76d873a22ae
glsl/linker: remove ubo explicit binding handling

This is already handled at link_uniform_blocks, specifically at
process_block_array_leaf.

Additionally, this code was not handling correctly arrays of
arrays. When creating the name of the block to set the binding, it
only took into account the first level, so any attempt to set a
explicit binding on a array of array ubo would trigger an assertion.

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