nir: add glsl_type_is_64bit() to nir_types

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Timothy Arceri 2016-12-04 17:21:16 +11:00 committed by Timothy Arceri
parent 790b5c4a38
commit 421c1b9bd6
2 changed files with 7 additions and 0 deletions

View file

@ -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)
{

View file

@ -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);