glsl: fix duplicated layout qualifier detection for GS
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 2 Jul 2014 07:38:43 +0000 (09:38 +0200)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 3 Jul 2014 17:34:12 +0000 (10:34 -0700)
commit7f0420700c473caee00a84596b22a600a7517b4d
tree57d803fa21bf74db6058e3ffa50b799d0d524d86
parent986adb90573b1250ec348a210f3d315c8e48c76e
glsl: fix duplicated layout qualifier detection for GS

This patch fixes the duplicated layout qualifier detection
for geometry shader's layout qualifiers.

Also it makes the detection code more legible by defining
allowed_duplicates_mask variable.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80778
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/ast_type.cpp