glsl: add component to has_layout() helper
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 12 Jan 2016 01:42:16 +0000 (12:42 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sun, 1 May 2016 13:13:28 +0000 (23:13 +1000)
I don't think this will do much as it's a compiler error
to use component without location which is already in the
table but its good to be consistent.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/glsl/ast_type.cpp

index a695b48d04a6fdead9707fb050eafaedd938679c..4fb4ac0df61ad57a917a337e9cd585a3970319d4 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_align
+          || this->flags.q.explicit_component
           || this->flags.q.explicit_location
           || this->flags.q.explicit_image_format
           || this->flags.q.explicit_index