glsl: Track blocks in the symbol table using the glsl_type instead of the gl_uniform_...
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 22 Jan 2013 04:01:33 +0000 (23:01 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 25 Jan 2013 14:07:34 +0000 (09:07 -0500)
commit5383661092fc46cf7013052210e6d624f4d5b596
tree0997c7806b795f6db0e75395edf752c5e605331b
parent9a204bb9f611e34396ea838b44517dd6eeb99bcc
glsl: Track blocks in the symbol table using the glsl_type instead of the gl_uniform_block

Eventually the gl_uniform_block information won't be calculated until
linking.  Block names need to be checked for name clashes during
compiling, so we have to track it differently.

v2: Update the commit message.  Suggested by Carl Worth.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp
src/glsl/glsl_symbol_table.cpp
src/glsl/glsl_symbol_table.h