mesa: Remove now unused _mesa_draw_attrib_and_binding.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/308>
This commit is contained in:
Mathias Fröhlich 2018-12-11 18:45:43 +01:00 committed by Marge Bot
parent 4ccda7bfd9
commit 305724dd7b
1 changed files with 0 additions and 19 deletions

View File

@ -346,25 +346,6 @@ _mesa_draw_attrib(const struct gl_context *ctx, gl_vert_attrib attr)
}
/**
* Return the attrib, binding pair for the given attribute.
*/
static inline void
_mesa_draw_attrib_and_binding(const struct gl_context *ctx, gl_vert_attrib attr,
const struct gl_array_attributes **attrib,
const struct gl_vertex_buffer_binding **binding)
{
if (ctx->Array._DrawVAOEnabledAttribs & VERT_BIT(attr)) {
const struct gl_vertex_array_object *vao = ctx->Array._DrawVAO;
*attrib = _mesa_draw_array_attrib(vao, attr);
*binding = _mesa_draw_buffer_binding_from_attrib(vao, *attrib);
} else {
*attrib = _vbo_current_attrib(ctx, attr);
*binding = _vbo_current_binding(ctx);
}
}
/*
* API functions
*/