mesa: Remove unused _mesa_AllocTextureStorage_sw
authorAdam Jackson <ajax@redhat.com>
Thu, 16 Dec 2021 01:56:52 +0000 (20:56 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Jan 2022 19:45:54 +0000 (19:45 +0000)
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14220>

src/mesa/main/texstorage.c
src/mesa/main/texstorage.h

index e7f871a..0ce9e3c 100644 (file)
@@ -262,41 +262,6 @@ _mesa_is_legal_tex_storage_format(const struct gl_context *ctx,
 
 
 /**
- * Default ctx->Driver.AllocTextureStorage() handler.
- *
- * The driver can override this with a more specific implementation if it
- * desires, but this can be used to get the texture images allocated using the
- * usual texture image handling code.  The immutability of
- * GL_ARB_texture_storage texture layouts is handled by texObj->Immutable
- * checks at glTexImage* time.
- */
-GLboolean
-_mesa_AllocTextureStorage_sw(struct gl_context *ctx,
-                             struct gl_texture_object *texObj,
-                             GLsizei levels, GLsizei width,
-                             GLsizei height, GLsizei depth)
-{
-   const int numFaces = _mesa_num_tex_faces(texObj->Target);
-   int face;
-   int level;
-
-   (void) width;
-   (void) height;
-   (void) depth;
-
-   for (face = 0; face < numFaces; face++) {
-      for (level = 0; level < levels; level++) {
-         struct gl_texture_image *const texImage = texObj->Image[face][level];
-         if (!st_AllocTextureImageBuffer(ctx, texImage))
-            return GL_FALSE;
-      }
-   }
-
-   return GL_TRUE;
-}
-
-
-/**
  * Do error checking for calls to glTexStorage1/2/3D().
  * If an error is found, record it with _mesa_error(), unless the target
  * is a proxy texture.
index 3b3b599..f02c2d7 100644 (file)
@@ -62,12 +62,6 @@ extern bool
 _mesa_is_legal_tex_storage_target(const struct gl_context *ctx,
                                   GLuint dims, GLenum target);
 
-extern GLboolean
-_mesa_AllocTextureStorage_sw(struct gl_context *ctx,
-                             struct gl_texture_object *texObj,
-                             GLsizei levels, GLsizei width,
-                             GLsizei height, GLsizei depth);
-
 extern void
 _mesa_texture_storage_memory(struct gl_context *ctx, GLuint dims,
                              struct gl_texture_object *texObj,