mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
glsl ast_to_hir: move uniform block symbols to interface blocks namespace
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>
This commit is contained in:
parent
3919c19468
commit
c00387497d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue