glsl: refactor duplicated validations between 2 layout-qualifiers
authorAndres Gomez <agomez@igalia.com>
Tue, 22 Nov 2016 14:09:54 +0000 (16:09 +0200)
committerAndres Gomez <agomez@igalia.com>
Fri, 25 Nov 2016 11:18:30 +0000 (13:18 +0200)
commitb95793b9a7e8b18eb9b5d80eb79c4913063c8840
tree84160c2f3e501d917994963a7fd6339a62431993
parentae1ce8ecd3cfd243d6fdc558c0d0f04d073c2290
glsl: refactor duplicated validations between 2 layout-qualifiers

Several layout-qualifier validations are duplicated in the
merge_qualifier and validate_in_qualifier methods.

We would rather have them refactored into single calls.

Suggested by Timothy.

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
src/compiler/glsl/ast_type.cpp