From b1c872a81e061101a69ee7054321cb5140cf2748 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 12 Jan 2016 12:42:16 +1100 Subject: [PATCH] glsl: add component to has_layout() helper MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/compiler/glsl/ast_type.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2