dlist: remove unused _mesa_dlist_alloc

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11493>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-06-18 15:11:54 +02:00 committed by Marge Bot
parent 4f78b2f805
commit 482db91c45
2 changed files with 0 additions and 24 deletions

View File

@ -1619,27 +1619,6 @@ dlist_alloc(struct gl_context *ctx, OpCode opcode, GLuint bytes, bool align8)
}
/**
* Allocate space for a display list instruction. Used by callers outside
* this file for things like VBO vertex data.
*
* \param opcode the instruction opcode (OPCODE_* value)
* \param bytes instruction size in bytes, not counting opcode.
* \return pointer to the usable data area (not including the internal
* opcode).
*/
void *
_mesa_dlist_alloc(struct gl_context *ctx, GLuint opcode, GLuint bytes)
{
Node *n = dlist_alloc(ctx, (OpCode) opcode, bytes, false);
if (n)
return n + 1; /* return pointer to payload area, after opcode */
else
return NULL;
}
void *
_mesa_dlist_alloc_vertex_list(struct gl_context *ctx, bool copy_to_current)
{

View File

@ -105,9 +105,6 @@ _mesa_lookup_list(struct gl_context *ctx, GLuint list, bool locked);
void
_mesa_compile_error(struct gl_context *ctx, GLenum error, const char *s);
void *
_mesa_dlist_alloc(struct gl_context *ctx, GLuint opcode, GLuint sz);
void *
_mesa_dlist_alloc_vertex_list(struct gl_context *ctx,
bool copy_to_current);