nir: wrapper for glsl_type arrays_of_arrays_size()
authorTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 22 Jul 2015 22:31:59 +0000 (08:31 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Fri, 16 Oct 2015 21:43:15 +0000 (08:43 +1100)
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/nir/nir_types.cpp
src/glsl/nir/nir_types.h

index da9807f0e629b167af6ebae07c35b3a291b879fe..965f42320beff11afcb39bf6c67a6c131cf1f2ba 100644 (file)
@@ -106,6 +106,12 @@ glsl_get_length(const struct glsl_type *type)
    return type->is_matrix() ? type->matrix_columns : type->length;
 }
 
+unsigned
+glsl_get_aoa_size(const struct glsl_type *type)
+{
+   return type->arrays_of_arrays_size();
+}
+
 const char *
 glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index)
 {
index 49d6a65e7c4c64ddfd3e1793229365652d972291..009a0fb991825b93b7743a67f4cb2fae4f89a260 100644 (file)
@@ -59,6 +59,8 @@ unsigned glsl_get_matrix_columns(const struct glsl_type *type);
 
 unsigned glsl_get_length(const struct glsl_type *type);
 
+unsigned glsl_get_aoa_size(const struct glsl_type *type);
+
 const char *glsl_get_struct_elem_name(const struct glsl_type *type,
                                       unsigned index);