}
+/**
+ * Return a vertex array vertex format provided the attribute number.
+ */
+static inline const struct gl_vertex_format *
+_mesa_draw_array_format(const struct gl_vertex_array_object *vao,
+ gl_vert_attrib attr)
+{
+ return &_mesa_draw_array_attrib(vao, attr)->Format;
+}
+
+
/**
* Return vertex buffer binding provided an attribute number.
*/
}
+/**
+ * Return a current value vertex format provided the attribute number.
+ */
+static inline const struct gl_vertex_format *
+_mesa_draw_current_format(const struct gl_context *ctx, gl_vert_attrib attr)
+{
+ return &_vbo_current_attrib(ctx, attr)->Format;
+}
+
+
/**
* Return true if we have the VERT_ATTRIB_EDGEFLAG array enabled.
*/