mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 01:40:36 +01:00
mesa: rename GL dispatch initialization functions to make the intent clear
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18828>
This commit is contained in:
parent
f44ada0eb6
commit
b7ba29cbf6
10 changed files with 23 additions and 23 deletions
|
|
@ -21,7 +21,7 @@
|
|||
# IN THE SOFTWARE.
|
||||
|
||||
# This script generates the file api_exec_init.c, which contains
|
||||
# _mesa_initialize_exec_table(). It is responsible for populating all
|
||||
# _mesa_init_dispatch(). It is responsible for populating all
|
||||
# entries in the "OutsideBeginEnd" dispatch table.
|
||||
|
||||
import argparse
|
||||
|
|
@ -61,7 +61,7 @@ header = """/**
|
|||
* \param ctx GL context
|
||||
*/
|
||||
void
|
||||
_mesa_initialize_exec_table(struct gl_context *ctx)
|
||||
_mesa_init_dispatch(struct gl_context *ctx)
|
||||
{
|
||||
struct _glapi_table *table = ctx->OutsideBeginEnd;
|
||||
|
||||
|
|
|
|||
|
|
@ -928,14 +928,14 @@ void
|
|||
_mesa_initialize_dispatch_tables(struct gl_context *ctx)
|
||||
{
|
||||
/* Do the code-generated setup of the exec table in api_exec_init.c. */
|
||||
_mesa_initialize_exec_table(ctx);
|
||||
_mesa_init_dispatch(ctx);
|
||||
|
||||
if (ctx->Save)
|
||||
_mesa_initialize_save_table(ctx);
|
||||
_mesa_init_dispatch_save(ctx);
|
||||
|
||||
vbo_install_exec_vtxfmt(ctx);
|
||||
vbo_init_dispatch_begin_end(ctx);
|
||||
if (ctx->API == API_OPENGL_COMPAT)
|
||||
_mesa_install_save_vtxfmt(ctx);
|
||||
_mesa_init_dispatch_save_begin_end(ctx);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ extern struct _glapi_table *
|
|||
_mesa_alloc_dispatch_table(bool glthread);
|
||||
|
||||
extern void
|
||||
_mesa_initialize_exec_table(struct gl_context *ctx);
|
||||
_mesa_init_dispatch(struct gl_context *ctx);
|
||||
|
||||
extern void
|
||||
_mesa_initialize_dispatch_tables(struct gl_context *ctx);
|
||||
|
|
|
|||
|
|
@ -13602,7 +13602,7 @@ _mesa_ListBase(GLuint base)
|
|||
* building functions.
|
||||
*/
|
||||
void
|
||||
_mesa_initialize_save_table(const struct gl_context *ctx)
|
||||
_mesa_init_dispatch_save(const struct gl_context *ctx)
|
||||
{
|
||||
struct _glapi_table *table = ctx->Save;
|
||||
int numEntries = MAX2(_gloffset_COUNT, _glapi_get_dispatch_table_size());
|
||||
|
|
@ -14090,7 +14090,7 @@ _mesa_init_display_list(struct gl_context *ctx)
|
|||
|
||||
|
||||
void
|
||||
_mesa_install_save_vtxfmt(struct gl_context *ctx)
|
||||
_mesa_init_dispatch_save_begin_end(struct gl_context *ctx)
|
||||
{
|
||||
struct _glapi_table *tab = ctx->Save;
|
||||
assert(ctx->API == API_OPENGL_COMPAT);
|
||||
|
|
|
|||
|
|
@ -83,13 +83,13 @@ void
|
|||
_mesa_delete_list(struct gl_context *ctx, struct gl_display_list *dlist);
|
||||
|
||||
void
|
||||
_mesa_initialize_save_table(const struct gl_context *);
|
||||
_mesa_init_dispatch_save(const struct gl_context *);
|
||||
|
||||
void
|
||||
_mesa_init_display_list(struct gl_context * ctx);
|
||||
|
||||
void
|
||||
_mesa_install_save_vtxfmt(struct gl_context *ctx);
|
||||
_mesa_init_dispatch_save_begin_end(struct gl_context *ctx);
|
||||
|
||||
bool
|
||||
_mesa_get_list(struct gl_context *ctx, GLuint list,
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ alloc_select_resource(struct gl_context *ctx)
|
|||
_mesa_error(ctx, GL_OUT_OF_MEMORY, "Cannot allocate HWSelectModeBeginEnd");
|
||||
return;
|
||||
}
|
||||
vbo_install_hw_select_begin_end(ctx);
|
||||
vbo_init_dispatch_hw_select_begin_end(ctx);
|
||||
}
|
||||
|
||||
if (!s->SaveBuffer) {
|
||||
|
|
|
|||
|
|
@ -188,10 +188,10 @@ void
|
|||
_vbo_DestroyContext(struct gl_context *ctx);
|
||||
|
||||
void
|
||||
vbo_install_exec_vtxfmt(struct gl_context *ctx);
|
||||
vbo_init_dispatch_begin_end(struct gl_context *ctx);
|
||||
|
||||
void
|
||||
vbo_install_hw_select_begin_end(struct gl_context *ctx);
|
||||
vbo_init_dispatch_hw_select_begin_end(struct gl_context *ctx);
|
||||
|
||||
void
|
||||
vbo_install_exec_vtxfmt_noop(struct gl_context *ctx);
|
||||
|
|
|
|||
|
|
@ -1069,7 +1069,7 @@ _es_VertexAttrib4fvARB(GLuint indx, const GLfloat* values)
|
|||
|
||||
|
||||
void
|
||||
vbo_install_exec_vtxfmt(struct gl_context *ctx)
|
||||
vbo_init_dispatch_begin_end(struct gl_context *ctx)
|
||||
{
|
||||
#define NAME_AE(x) _mesa_##x
|
||||
#define NAME_CALLLIST(x) _mesa_##x
|
||||
|
|
@ -1243,7 +1243,7 @@ _es_Materialf(GLenum face, GLenum pname, GLfloat param)
|
|||
#include "vbo_attrib_tmp.h"
|
||||
|
||||
void
|
||||
vbo_install_hw_select_begin_end(struct gl_context *ctx)
|
||||
vbo_init_dispatch_hw_select_begin_end(struct gl_context *ctx)
|
||||
{
|
||||
int numEntries = MAX2(_gloffset_COUNT, _glapi_get_dispatch_table_size());
|
||||
memcpy(ctx->HWSelectModeBeginEnd, ctx->BeginEnd, numEntries * sizeof(_glapi_proc));
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ vbo_exec_vtx_map(struct vbo_exec_context *exec)
|
|||
* functions. We do this test just to avoid frequent and needless
|
||||
* calls to vbo_install_exec_vtxfmt().
|
||||
*/
|
||||
vbo_install_exec_vtxfmt(ctx);
|
||||
vbo_init_dispatch_begin_end(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1408,7 +1408,7 @@ _save_Materialfv(GLenum face, GLenum pname, const GLfloat *params)
|
|||
|
||||
|
||||
static void
|
||||
vbo_install_save_vtxfmt(struct gl_context *ctx);
|
||||
vbo_init_dispatch_save_begin_end(struct gl_context *ctx);
|
||||
|
||||
|
||||
/* Cope with EvalCoord/CallList called within a begin/end object:
|
||||
|
|
@ -1445,7 +1445,7 @@ dlist_fallback(struct gl_context *ctx)
|
|||
vbo_install_save_vtxfmt_noop(ctx);
|
||||
}
|
||||
else {
|
||||
_mesa_install_save_vtxfmt(ctx);
|
||||
_mesa_init_dispatch_save_begin_end(ctx);
|
||||
}
|
||||
ctx->Driver.SaveNeedFlush = GL_FALSE;
|
||||
}
|
||||
|
|
@ -1541,7 +1541,7 @@ vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode,
|
|||
|
||||
save->no_current_update = no_current_update;
|
||||
|
||||
vbo_install_save_vtxfmt(ctx);
|
||||
vbo_init_dispatch_save_begin_end(ctx);
|
||||
|
||||
/* We need to call vbo_save_SaveFlushVertices() if there's state change */
|
||||
ctx->Driver.SaveNeedFlush = GL_TRUE;
|
||||
|
|
@ -1567,7 +1567,7 @@ _save_End(void)
|
|||
vbo_install_save_vtxfmt_noop(ctx);
|
||||
}
|
||||
else {
|
||||
_mesa_install_save_vtxfmt(ctx);
|
||||
_mesa_init_dispatch_save_begin_end(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1930,7 +1930,7 @@ save_MultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count,
|
|||
|
||||
|
||||
static void
|
||||
vbo_install_save_vtxfmt(struct gl_context *ctx)
|
||||
vbo_init_dispatch_save_begin_end(struct gl_context *ctx)
|
||||
{
|
||||
#define NAME_AE(x) _mesa_##x
|
||||
#define NAME_CALLLIST(x) _save_##x
|
||||
|
|
@ -2011,7 +2011,7 @@ vbo_save_EndList(struct gl_context *ctx)
|
|||
* etc. received between here and the next begin will be compiled
|
||||
* as opcodes.
|
||||
*/
|
||||
_mesa_install_save_vtxfmt(ctx);
|
||||
_mesa_init_dispatch_save_begin_end(ctx);
|
||||
}
|
||||
|
||||
assert(save->vertex_size == 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue