glsl: Account for interface block lowering in program_resource_visitor.
authorPaul Berry <stereotype441@gmail.com>
Tue, 22 Oct 2013 04:09:47 +0000 (21:09 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 25 Oct 2013 05:01:19 +0000 (22:01 -0700)
commita49830b8f549c93cf92298048ffe00f931e0525d
treef222d584074dfbb57f580708ce5a6f75f5e08989
parent4b97c581b4f85e1712c7900cb099c9d56babb05d
glsl: Account for interface block lowering in program_resource_visitor.

When program_resource_visitor visits variables that were created by
lower_named_interface_blocks, it needs to do extra work to un-do the
effects of lower_named_interface_blocks and construct the proper API
names.

Fixes piglit test
spec/glsl-1.50/execution/interface-blocks-api-access-members.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/link_uniforms.cpp