linker: Set binding for all elements of UBO array
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 4 Apr 2014 20:42:04 +0000 (13:42 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 11 Apr 2014 19:26:01 +0000 (12:26 -0700)
commit25a66568750c5826a077cbf549de92546c5fc6cf
tree2b4d481f3c243f923875f462ec0e1221a81bb05d
parentcc42717b50bd46c82ac7925c397cd105ac82d091
linker: Set binding for all elements of UBO array

Previously, a UBO like

    layout(binding=2) uniform U {
        ...
    } my_constants[4];

wouldn't get any bindings set.  The code would try to set the binding of
U, but that would fail.  It should instead set the bindings for U[0],
U[1], ...

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76323
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Cc: github@socker.lepus.uberspace.de
src/glsl/link_uniform_initializers.cpp