glsl: reject memory qualifiers with uniform blocks
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 3 May 2017 16:37:28 +0000 (18:37 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 4 May 2017 12:01:59 +0000 (14:01 +0200)
commit9db9b2e8cd0a0d250c6251a2fef17198616519e7
tree0a2045c4e6a640c6837b891e977c6f42efc157a3
parentf8003d2516b33fff9a749e62fd994c6cb57b27d4
glsl: reject memory qualifiers with uniform blocks

The spec allows memory qualifiers to be used with image variables,
buffers variables and shader storage blocks. This patch also fixes
validate_memory_qualifier_for_type().

Fixes the following ARB_uniform_buffer_object test:

uniform-block-memory-qualifier.frag

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/ast_to_hir.cpp