glsl: Propagate UBO binding qualifier into UBO member variables.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Jul 2013 01:06:57 +0000 (18:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Jul 2013 23:57:24 +0000 (16:57 -0700)
commitf25d94084ce3225e803c07672c359a4e553b0e08
treedd369e50d0f19758fc3248b3606cfad77dd5308f
parent34e2ccc9f099affa78298203db015b9a17ab6de3
glsl: Propagate UBO binding qualifier into UBO member variables.

Without an instance name, there is no ir_variable representing the
actual uniform block declaration.  When the linker goes to set uniform
initializers, it only sees the members as ir_variables; never the block.

So, unfortunately, the members need to know about the binding.

There has to be a better way to do this.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_to_hir.cpp