[Mesa-dev] [PATCH v2 1/6] nir: add glsl_type_is_64bit() to nir_types

Jason Ekstrand jason at jlekstrand.net
Thu Oct 12 06:18:12 UTC 2017


Rb


On October 11, 2017 5:51:54 PM Timothy Arceri <tarceri at itsqueeze.com> wrote:

> From: Timothy Arceri <timothy.arceri at collabora.com>
>
> Reviewed-by: Eric Anholt <eric at anholt.net>
> ---
>  src/compiler/nir_types.cpp | 6 ++++++
>  src/compiler/nir_types.h   | 1 +
>  2 files changed, 7 insertions(+)
>
> diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp
> index 5583bc01620..b0d84aae384 100644
> --- a/src/compiler/nir_types.cpp
> +++ b/src/compiler/nir_types.cpp
> @@ -150,6 +150,12 @@ glsl_get_record_location_offset(const struct glsl_type 
> *type,
>  }
>
>  bool
> +glsl_type_is_64bit(const glsl_type *type)
> +{
> +   return type->is_64bit();
> +}
> +
> +bool
>  glsl_type_is_void(const glsl_type *type)
>  {
>     return type->is_void();
> diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
> index f0e8ae95721..d9a9513b9f4 100644
> --- a/src/compiler/nir_types.h
> +++ b/src/compiler/nir_types.h
> @@ -106,6 +106,7 @@ glsl_get_bit_size(const struct glsl_type *type)
>     return 0;
>  }
>
> +bool glsl_type_is_64bit(const struct glsl_type *type);
>  bool glsl_type_is_void(const struct glsl_type *type);
>  bool glsl_type_is_error(const struct glsl_type *type);
>  bool glsl_type_is_vector(const struct glsl_type *type);
> --
> 2.13.6
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev




More information about the mesa-dev mailing list