/**
- * Return enabled buffer object vertex attribute bits for draw.
- *
- * Needs the a fully updated VAO ready for draw.
- */
-static inline GLbitfield
-_mesa_draw_vbo_array_bits(const struct gl_context *ctx)
-{
- const struct gl_vertex_array_object *const vao = ctx->Array._DrawVAO;
- assert(!vao->NewVertexBuffers && !vao->NewVertexElements);
- return vao->_EffEnabledVBO & ctx->Array._DrawVAOEnabledAttribs;
-}
-
-
-/**
* Return enabled user space vertex attribute bits for draw.
*
* Needs the a fully updated VAO ready for draw.
/**
- * 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.
*/
static inline const struct gl_vertex_buffer_binding*
/**
- * 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.
*/
static inline bool