linker: Accurately mark a uniform block instance array element as used in a stage
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 14 Dec 2016 04:33:08 +0000 (20:33 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Dec 2016 23:55:43 +0000 (15:55 -0800)
commitceea514d9192a71b9be87b50b2c63303a54331f9
tree5b0b058edada23386ca8698eeaa5dd92a5e22ec1
parentd32956935edf06c8ae6872c707bc65187b4a1d15
linker: Accurately mark a uniform block instance array element as used in a stage

Now that information about which array-of-arrays elements are accessed
is tracked, use that information to only mark an instance array element
as used-by-stage if, in fact, it is.

Fixes GL45-CTS.program_interface_query.uniform-block-types.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/link_uniforms.cpp