mesa: Remove unused _mesa_bind_texture

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14220>
This commit is contained in:
Adam Jackson
2021-12-15 21:21:55 -05:00
committed by Marge Bot
parent e44ce092be
commit 07d23c207a
2 changed files with 0 additions and 28 deletions
-24
View File
@@ -1652,30 +1652,6 @@ bind_texture_object(struct gl_context *ctx, unsigned unit,
texUnit->_BoundTextures &= ~(1 << targetIndex);
}
/**
* Light-weight bind texture for internal users
*
* This is really just \c finish_texture_init plus \c bind_texture_object.
* This is intended to be used by internal Mesa functions that use
* \c _mesa_CreateTexture and need to bind textures (e.g., meta).
*/
void
_mesa_bind_texture(struct gl_context *ctx, GLenum target,
struct gl_texture_object *tex_obj)
{
const GLint targetIndex = _mesa_tex_target_to_index(ctx, target);
assert(targetIndex >= 0 && targetIndex < NUM_TEXTURE_TARGETS);
if (tex_obj->Target == 0)
finish_texture_init(ctx, target, tex_obj, targetIndex);
assert(tex_obj->Target == target);
assert(tex_obj->TargetIndex == targetIndex);
bind_texture_object(ctx, ctx->Texture.CurrentUnit, tex_obj);
}
struct gl_texture_object *
_mesa_lookup_or_create_texture(struct gl_context *ctx, GLenum target,
GLuint texName, bool no_error, bool is_ext_dsa,
-4
View File
@@ -209,10 +209,6 @@ extern void
_mesa_delete_nameless_texture(struct gl_context *ctx,
struct gl_texture_object *texObj);
extern void
_mesa_bind_texture(struct gl_context *ctx, GLenum target,
struct gl_texture_object *tex_obj);
extern struct gl_texture_object *
_mesa_lookup_or_create_texture(struct gl_context *ctx, GLenum target,
GLuint texName, bool no_error, bool is_ext_dsa,