From: Jason Ekstrand Date: Tue, 27 Oct 2015 02:45:30 +0000 (-0700) Subject: nir/types: Expose glsl_type::count_attribute_slots() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ff4310a783cb4815d99e2991697d9b300bc7d32;p=mesa.git nir/types: Expose glsl_type::count_attribute_slots() --- diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp index 27db5793a60..54751cbcb5f 100644 --- a/src/glsl/nir/nir_types.cpp +++ b/src/glsl/nir/nir_types.cpp @@ -124,6 +124,12 @@ glsl_get_aoa_size(const struct glsl_type *type) return type->arrays_of_arrays_size(); } +unsigned +glsl_count_attribute_slots(const struct glsl_type *type) +{ + return type->count_attribute_slots(); +} + const char * glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index) { diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h index 9cc71e899d7..1bae84a356e 100644 --- a/src/glsl/nir/nir_types.h +++ b/src/glsl/nir/nir_types.h @@ -67,6 +67,8 @@ unsigned glsl_get_length(const struct glsl_type *type); unsigned glsl_get_aoa_size(const struct glsl_type *type); +unsigned glsl_count_attribute_slots(const struct glsl_type *type); + const char *glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index);