This patch is Reviewed-by: Ian Romanick <ian.d.roman...@intel.com>
On 08/19/2015 09:37 PM, Timothy Arceri wrote: > Reviewed-by: Tapani Pälli <tapani.pa...@intel.com> > --- > src/glsl/nir/nir_types.cpp | 6 ++++++ > src/glsl/nir/nir_types.h | 2 ++ > 2 files changed, 8 insertions(+) > > diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp > index 940c676..da7015b 100644 > --- a/src/glsl/nir/nir_types.cpp > +++ b/src/glsl/nir/nir_types.cpp > @@ -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) > { > diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h > index a8ff8f2..5d16d3a 100644 > --- a/src/glsl/nir/nir_types.h > +++ b/src/glsl/nir/nir_types.h > @@ -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); > > _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev