From 85313ff8ab1e3fad9679e05a97a7fd55ecf87291 Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Fri, 2 Oct 2015 10:08:55 +0300 Subject: glsl: validate binding qualifier on block members MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes following Piglit test: member-invalid-binding-qualifier.frag Signed-off-by: Tapani Pälli Reviewed-by: Samuel Iglesias Gonsálvez --- src/glsl/ast_to_hir.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/glsl/ast_to_hir.cpp') diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 6899a554f2c..7bcf1820b19 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -5765,6 +5765,10 @@ ast_process_structure_or_interface_block(exec_list *instructions, const struct ast_type_qualifier *const qual = & decl_list->type->qualifier; + + if (qual->flags.q.explicit_binding) + validate_binding_qualifier(state, &loc, decl_type, qual); + if (qual->flags.q.std140 || qual->flags.q.std430 || qual->flags.q.packed || -- cgit v1.2.3