nir: add glsl_get_std140_size() helper
[mesa.git] / src / compiler / nir_types.cpp
index 74a5a8d769a695f963a08cf560993d419f4df97d..631e8b4183297baef28f3e59cf4652b36673ce99 100644 (file)
@@ -785,6 +785,12 @@ glsl_get_std140_base_alignment(const struct glsl_type *type, bool row_major)
    return type->std140_base_alignment(row_major);
 }
 
+unsigned
+glsl_get_std140_size(const struct glsl_type *type, bool row_major)
+{
+   return type->std140_size(row_major);
+}
+
 unsigned
 glsl_get_explicit_size(const struct glsl_type *type, bool align_to_stride)
 {