mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
mesa: Remove unused _mesa_AllocTextureStorage_sw
Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14220>
This commit is contained in:
parent
c77da4de4b
commit
e44ce092be
2 changed files with 0 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue