summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ast_type.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-01-12 12:42:16 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-05-01 23:13:28 +1000
commitb1c872a81e061101a69ee7054321cb5140cf2748 (patch)
treefe482422107025adea347e73857634a6ea23469e /src/compiler/glsl/ast_type.cpp
parent589053dac7bfd4fc1845b1259e0a0aed2ca464ad (diff)
downloadexternal_mesa3d-b1c872a81e061101a69ee7054321cb5140cf2748.zip
external_mesa3d-b1c872a81e061101a69ee7054321cb5140cf2748.tar.gz
external_mesa3d-b1c872a81e061101a69ee7054321cb5140cf2748.tar.bz2
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 <ian.d.romanick@intel.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Diffstat (limited to 'src/compiler/glsl/ast_type.cpp')
-rw-r--r--src/compiler/glsl/ast_type.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/ast_type.cpp b/src/compiler/glsl/ast_type.cpp
index a695b48..4fb4ac0 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