From: Timothy Arceri Date: Tue, 12 Jan 2016 01:42:16 +0000 (+1100) Subject: glsl: add component to has_layout() helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1c872a81e061101a69ee7054321cb5140cf2748;p=mesa.git glsl: add component to has_layout() helper 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 Reviewed-by: Samuel Iglesias Gonsálvez --- diff --git a/src/compiler/glsl/ast_type.cpp b/src/compiler/glsl/ast_type.cpp index a695b48d04a..4fb4ac0df61 100644 --- a/src/compiler/glsl/ast_type.cpp +++ b/src/compiler/glsl/ast_type.cpp @@ -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