nir/load_store_vectorizer: Add unit tests for alignment handling.
[mesa.git] / src / compiler / nir_types.cpp
index c7d07415cd200f91c6037c9de937c5dd609d7ead..1fff15c7cd58d480d5792c30542267804e51515a 100644 (file)
@@ -860,6 +860,18 @@ 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)
+{
+   return type->packed;
+}
+
 bool
 glsl_type_is_leaf(const struct glsl_type *type)
 {