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)
commitb1c872a81e061101a69ee7054321cb5140cf2748
treefe482422107025adea347e73857634a6ea23469e
parent589053dac7bfd4fc1845b1259e0a0aed2ca464ad
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>
src/compiler/glsl/ast_type.cpp