glsl linker: support arrays of interface block instances
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 17 Mar 2013 09:04:56 +0000 (02:04 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 23 May 2013 16:37:12 +0000 (09:37 -0700)
commitd6863acb9f40fd36eb18e873def31a3b72e0d68a
treed71430c9d7ed60ac9bf3b5a5f504889a79f1e86d
parentc30ca431ba06456259435e63a11f0bf24802e8ae
glsl linker: support arrays of interface block instances

With this change we now support interface block arrays.
For example, cases like this:

out block_name {
    float f;
} block_instance[2];

This allows Mesa to pass the piglit glsl-1.50 test:
* execution/interface-blocks-complex-vs-fs.shader_test

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/lower_named_interface_blocks.cpp