Mesa (master): mesa: remove unused ctx->Driver.PrioritizeTextures() hook

Brian Paul brianp at kemper.freedesktop.org
Thu Oct 15 01:08:50 UTC 2009


Module: Mesa
Branch: master
Commit: 73fc0ca4c36f258c4d0d7707dd3313a685c211bf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=73fc0ca4c36f258c4d0d7707dd3313a685c211bf

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Oct 14 15:11:12 2009 -0600

mesa: remove unused ctx->Driver.PrioritizeTextures() hook

---

 src/mesa/drivers/common/driverfuncs.c    |    1 -
 src/mesa/drivers/dri/mach64/mach64_tex.c |    1 -
 src/mesa/main/dd.h                       |    6 ------
 src/mesa/main/texobj.c                   |    2 --
 4 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c
index 5934907..4d21b03 100644
--- a/src/mesa/drivers/common/driverfuncs.c
+++ b/src/mesa/drivers/common/driverfuncs.c
@@ -125,7 +125,6 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
    driver->UnmapTexture = NULL;
    driver->TextureMemCpy = _mesa_memcpy; 
    driver->IsTextureResident = NULL;
-   driver->PrioritizeTexture = NULL;
    driver->ActiveTexture = NULL;
    driver->UpdateTexturePalette = NULL;
 
diff --git a/src/mesa/drivers/dri/mach64/mach64_tex.c b/src/mesa/drivers/dri/mach64/mach64_tex.c
index 225d231..5a22c93 100644
--- a/src/mesa/drivers/dri/mach64/mach64_tex.c
+++ b/src/mesa/drivers/dri/mach64/mach64_tex.c
@@ -567,7 +567,6 @@ void mach64InitTextureFuncs( struct dd_function_table *functions )
 
    functions->UpdateTexturePalette	= NULL;
    functions->ActiveTexture		= NULL;
-   functions->PrioritizeTexture		= NULL;
 
    driInitTextureFormats();
 }
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index a9632ec..25aadde 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -545,12 +545,6 @@ struct dd_function_table {
                                    struct gl_texture_object *t );
 
    /**
-    * Called by glPrioritizeTextures().
-    */
-   void (*PrioritizeTexture)( GLcontext *ctx,  struct gl_texture_object *t,
-                              GLclampf priority );
-
-   /**
     * Called by glActiveTextureARB() to set current texture unit.
     */
    void (*ActiveTexture)( GLcontext *ctx, GLuint texUnitNumber );
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 8fd5eaa..3183218 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1098,8 +1098,6 @@ _mesa_PrioritizeTextures( GLsizei n, const GLuint *texName,
          struct gl_texture_object *t = _mesa_lookup_texture(ctx, texName[i]);
          if (t) {
             t->Priority = CLAMP( priorities[i], 0.0F, 1.0F );
-	    if (ctx->Driver.PrioritizeTexture)
-	       ctx->Driver.PrioritizeTexture( ctx, t, t->Priority );
          }
       }
    }




More information about the mesa-commit mailing list