glsl: add missing explicit_image_format flag to has_layout()
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 19 Jan 2016 23:49:54 +0000 (10:49 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 20 Jan 2016 04:45:56 +0000 (15:45 +1100)
Fixes piglit regression after fixes to duplicate layout rules.

Previously catching multiple layouts was relying on the code
meant to catch duplicates within a single layout(...), this
change triggers the rules for multiple layouts.

Cc: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/glsl/ast_type.cpp

index cf494d96724549d91b468c1f6f68293d8e04b767..e0e331152dd3124f544d7cf4c5e23e0c68141487 100644 (file)
@@ -74,6 +74,7 @@ ast_type_qualifier::has_layout() const
           || this->flags.q.row_major
           || this->flags.q.packed
           || this->flags.q.explicit_location
+          || this->flags.q.explicit_image_format
           || this->flags.q.explicit_index
           || this->flags.q.explicit_binding
           || this->flags.q.explicit_offset