summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_named_interface_blocks.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <t_arceri@yahoo.com.au>2015-10-17 20:22:14 +1100
committerTimothy Arceri <t_arceri@yahoo.com.au>2015-10-20 11:58:28 +1100
commit2832ca95ecce064c7d841a3a374c2179f56161be (patch)
treef467520c99cc83259c82f7f9bb1ab8d7972c9699 /src/glsl/lower_named_interface_blocks.cpp
parentaa9f06b3ea99b318469c3d140651f4b4986896a6 (diff)
downloadexternal_mesa3d-2832ca95ecce064c7d841a3a374c2179f56161be.zip
external_mesa3d-2832ca95ecce064c7d841a3a374c2179f56161be.tar.gz
external_mesa3d-2832ca95ecce064c7d841a3a374c2179f56161be.tar.bz2
glsl: fix stream qualifier for blocks with an instance name
This also removes the validation from the parser as it is not required and once arb_enhanced_layouts comes along we wont be able to do validation on the stream qualifier in the parser anyway as it adds constant expression support to the stream qualifier. Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Cc: 11.0 <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/glsl/lower_named_interface_blocks.cpp')
-rw-r--r--src/glsl/lower_named_interface_blocks.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/lower_named_interface_blocks.cpp b/src/glsl/lower_named_interface_blocks.cpp
index 276a2de..114bb58 100644
--- a/src/glsl/lower_named_interface_blocks.cpp
+++ b/src/glsl/lower_named_interface_blocks.cpp
@@ -186,6 +186,7 @@ flatten_named_interface_blocks_declarations::run(exec_list *instructions)
new_var->data.centroid = iface_t->fields.structure[i].centroid;
new_var->data.sample = iface_t->fields.structure[i].sample;
new_var->data.patch = iface_t->fields.structure[i].patch;
+ new_var->data.stream = var->data.stream;
new_var->init_interface_type(iface_t);
hash_table_insert(interface_namespace, new_var,