glsl ast_to_hir: move uniform block symbols to interface blocks namespace
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 21 Mar 2013 18:10:04 +0000 (11:10 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 23 May 2013 16:37:12 +0000 (09:37 -0700)
Uniform/interface blocks are a separate namespace from types.

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

index b55d25e251119cb339dae82706e716094c4227b8..0e2e6527761b26c1cc403ea3db8ef8a9fbc515df 100644 (file)
@@ -4164,7 +4164,7 @@ ast_interface_block::hir(exec_list *instructions,
                                         packing,
                                         this->block_name);
 
-   if (!state->symbols->add_type(block_type->name, block_type)) {
+   if (!state->symbols->add_interface(block_type->name, block_type, ir_var_uniform)) {
       YYLTYPE loc = this->get_location();
       _mesa_glsl_error(&loc, state, "Uniform block name `%s' already taken in "
                        "the current scope.\n", this->block_name);