summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-01-16 15:07:31 -0800
committerEric Anholt <eric@anholt.net>2013-01-21 21:26:47 -0800
commit0aaf0445bac453db474cedf27f1d9f45e4acde4d (patch)
treee34aa98cc1bee6995b8eef0b3cbdfd2b20425e88
parent23916cae8ed3c18ae6b851365a25ccff6fcce7da (diff)
mesa: Remove the dead PrepareExecBegin() driver hook.
This was used in i965 for a while, but no more. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--src/mesa/drivers/common/driverfuncs.c1
-rw-r--r--src/mesa/main/dd.h8
-rw-r--r--src/mesa/vbo/vbo_exec_api.c3
3 files changed, 0 insertions, 12 deletions
diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c
index 3de5199b477..cf6b686dd7e 100644
--- a/src/mesa/drivers/common/driverfuncs.c
+++ b/src/mesa/drivers/common/driverfuncs.c
@@ -198,7 +198,6 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
driver->ProgramStringNotify = _tnl_program_string;
driver->FlushVertices = NULL;
driver->SaveFlushVertices = NULL;
- driver->PrepareExecBegin = NULL;
driver->NotifySaveBegin = NULL;
driver->LightingSpaceChange = NULL;
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 07787d41dd9..f91fd412032 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -723,14 +723,6 @@ struct dd_function_table {
void (*SaveFlushVertices)( struct gl_context *ctx );
/**
- * \brief Hook for drivers to prepare for a glBegin/glEnd block
- *
- * This hook is called in vbo_exec_Begin() before any action, including
- * state updates, occurs.
- */
- void (*PrepareExecBegin)( struct gl_context *ctx );
-
- /**
* Give the driver the opportunity to hook in its own vtxfmt for
* compiling optimized display lists. This is called on each valid
* glBegin() during list compilation.
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c
index 42eb953c223..84bcdd63bf3 100644
--- a/src/mesa/vbo/vbo_exec_api.c
+++ b/src/mesa/vbo/vbo_exec_api.c
@@ -803,9 +803,6 @@ static void GLAPIENTRY vbo_exec_Begin( GLenum mode )
vbo_draw_method(vbo_context(ctx), DRAW_BEGIN_END);
- if (ctx->Driver.PrepareExecBegin)
- ctx->Driver.PrepareExecBegin(ctx);
-
if (ctx->NewState) {
_mesa_update_state( ctx );