From: Timothy Arceri Date: Sun, 4 Dec 2016 06:21:16 +0000 (+1100) Subject: nir: add glsl_type_is_64bit() to nir_types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=421c1b9bd63f3bb9bdbe02cc9b361832d1007f5a;p=mesa.git nir: add glsl_type_is_64bit() to nir_types Reviewed-by: Eric Anholt Reviewed-by: Jason Ekstrand --- 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 @@ -149,6 +149,12 @@ glsl_get_record_location_offset(const struct glsl_type *type, return type->record_location_offset(length); } +bool +glsl_type_is_64bit(const glsl_type *type) +{ + return type->is_64bit(); +} + bool glsl_type_is_void(const glsl_type *type) { 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);