From e44ce092bed5c684e735a7cec5ffa533a8e114fc Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 15 Dec 2021 20:56:52 -0500 Subject: [PATCH] mesa: Remove unused _mesa_AllocTextureStorage_sw Reviewed-by: Emma Anholt Part-of: --- src/mesa/main/texstorage.c | 35 ----------------------------------- src/mesa/main/texstorage.h | 6 ------ 2 files changed, 41 deletions(-) diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index e7f871a71d5..0ce9e3cd3d4 100644 --- a/src/mesa/main/texstorage.c +++ b/src/mesa/main/texstorage.c @@ -261,41 +261,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 diff --git a/src/mesa/main/texstorage.h b/src/mesa/main/texstorage.h index 3b3b599c99a..f02c2d77bb6 100644 --- a/src/mesa/main/texstorage.h +++ b/src/mesa/main/texstorage.h @@ -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,