diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 3898a9dc5ca..65cd250e5a1 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -797,6 +797,12 @@ glsl_get_std430_base_alignment(const struct glsl_type *type, bool row_major) return type->std430_base_alignment(row_major); } +unsigned +glsl_get_std430_size(const struct glsl_type *type, bool row_major) +{ + return type->std430_size(row_major); +} + unsigned glsl_get_explicit_size(const struct glsl_type *type, bool align_to_stride) { diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index 0ceb1125cb4..e501cc70418 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -61,6 +61,7 @@ unsigned glsl_get_std140_base_alignment(const struct glsl_type *type, unsigned glsl_get_std140_size(const struct glsl_type *type, bool row_major); unsigned glsl_get_std430_base_alignment(const struct glsl_type *type, bool row_major); +unsigned glsl_get_std430_size(const struct glsl_type *type, bool row_major); unsigned glsl_get_explicit_stride(const struct glsl_type *type); const struct glsl_type *glsl_get_array_element(const struct glsl_type *type); const struct glsl_type *glsl_without_array(const struct glsl_type *type);