summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-01-12 12:42:16 +1100
committerTimothy Arceri <[email protected]>2016-05-01 23:13:28 +1000
commitb1c872a81e061101a69ee7054321cb5140cf2748 (patch)
treefe482422107025adea347e73857634a6ea23469e /src/compiler/glsl
parent589053dac7bfd4fc1845b1259e0a0aed2ca464ad (diff)
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 <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-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 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