This will be used in the following patch.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4797>
return type->get_internal_ifc_packing(std430_supported);
}
+enum glsl_interface_packing
+glsl_get_ifc_packing(const struct glsl_type *type)
+{
+ return type->get_interface_packing();
+}
+
unsigned
glsl_get_std140_base_alignment(const struct glsl_type *type, bool row_major)
{
enum glsl_interface_packing
glsl_get_internal_ifc_packing(const struct glsl_type *type,
bool std430_supported);
+enum glsl_interface_packing
+glsl_get_ifc_packing(const struct glsl_type *type);
unsigned glsl_get_std140_base_alignment(const struct glsl_type *type,
bool row_major);