[Mesa-dev] [PATCH 1/4] glsl: add component to has_layout() helper

Samuel Iglesias Gonsálvez siglesias at igalia.com
Tue Feb 9 14:08:01 UTC 2016


Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

On Tue, 2016-01-12 at 20:34 +1100, Timothy Arceri wrote:
> 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.
> ---
>  src/glsl/ast_type.cpp | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp
> index 7330a34..6d6f88f 100644
> --- a/src/glsl/ast_type.cpp
> +++ b/src/glsl/ast_type.cpp
> @@ -73,6 +73,7 @@ ast_type_qualifier::has_layout() const
>            || this->flags.q.column_major
>            || this->flags.q.row_major
>            || this->flags.q.packed
> +          || this->flags.q.explicit_component
>            || this->flags.q.explicit_location
>            || this->flags.q.explicit_index
>            || this->flags.q.explicit_binding
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160209/3613679a/attachment.sig>


More information about the mesa-dev mailing list