[Mesa-dev] [PATCH 1/2] glsl: add is_array_of_arrays() helper
Tapani Pälli
tapani.palli at intel.com
Tue Oct 20 21:33:17 PDT 2015
Nice! Both patches are
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 10/21/2015 06:23 AM, Timothy Arceri wrote:
> As suggested by Ian Romanick
>
> Cc: Tapani Pälli <tapani.palli at intel.com>
> ---
> src/glsl/nir/glsl_types.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/glsl/nir/glsl_types.h b/src/glsl/nir/glsl_types.h
> index 3ec7642..52ca826 100644
> --- a/src/glsl/nir/glsl_types.h
> +++ b/src/glsl/nir/glsl_types.h
> @@ -513,6 +513,11 @@ struct glsl_type {
> return base_type == GLSL_TYPE_ARRAY;
> }
>
> + bool is_array_of_arrays() const
> + {
> + return is_array() && fields.array->is_array();
> + }
> +
> /**
> * Query whether or not a type is a record
> */
More information about the mesa-dev
mailing list