X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcompiler%2Fnir_types.cpp;h=4ea7a2fcd38cf3f3dcddca8721ccb9dd3a4b3f5a;hb=12dc89d8440691d29c5b1b13fa8eb67149910c2b;hp=62a1071e444c4166e106541b89e801ed467a1533;hpb=9bac27dbf92d32cd8685868d21d0317a5a56f333;p=mesa.git diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 62a1071e444..4ea7a2fcd38 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -64,6 +64,12 @@ glsl_get_array_element(const glsl_type* type) return type->fields.array; } +const glsl_type * +glsl_without_array(const glsl_type *type) +{ + return type->without_array(); +} + const glsl_type * glsl_get_struct_field(const glsl_type *type, unsigned index) {