glsl: rework validate_image_qualifier_for_type()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 1 May 2017 10:34:41 +0000 (12:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 4 May 2017 12:01:47 +0000 (14:01 +0200)
commit9efea874b9958a54e51c7fc25bd7564623b6126b
treea6e4696f6de2f601684aa60297414ecd9e8ab58a
parenta5f82db3805ff8e96b04e5b35fc566eac2f0a0a8
glsl: rework validate_image_qualifier_for_type()

It makes more sense to have two separate validate functions,
mainly because memory qualifiers are allowed with members of
shader storage blocks.

validate_memory_qualifier_for_type() will be fixed in a
separate patch.

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