X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcompiler%2Fnir_types.cpp;fp=src%2Fcompiler%2Fnir_types.cpp;h=1fff15c7cd58d480d5792c30542267804e51515a;hb=a0b82c24b6d08cc3f07b4ddad16c7e1b986ad983;hp=9b4f9c5b0aacb6d1eba0dde92359ca28e99d2fee;hpb=ca11b17b7b796db7077ed166ba2e33e77ec7088c;p=mesa.git diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 9b4f9c5b0aa..1fff15c7cd5 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -860,6 +860,12 @@ glsl_get_explicit_size(const struct glsl_type *type, bool align_to_stride) return type->explicit_size(align_to_stride); } +unsigned +glsl_get_explicit_alignment(const struct glsl_type *type) +{ + return type->explicit_alignment; +} + bool glsl_type_is_packed(const struct glsl_type *type) {