OSDN Git Service

mesa: Remove the dead PrepareExecBegin() driver hook.
authorEric Anholt <eric@anholt.net>
Wed, 16 Jan 2013 23:07:31 +0000 (15:07 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 22 Jan 2013 05:26:47 +0000 (21:26 -0800)
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>
src/mesa/drivers/common/driverfuncs.c
src/mesa/main/dd.h
src/mesa/vbo/vbo_exec_api.c

index 3de5199..cf6b686 100644 (file)
@@ -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;
 
index 07787d4..f91fd41 100644 (file)
@@ -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.
index 42eb953..84bcdd6 100644 (file)
@@ -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 );