#include "api_exec_decl.h"
#include "state_tracker/st_cb_texture.h"
+#include "state_tracker/st_context.h"
#include "state_tracker/st_format.h"
#include "state_tracker/st_cb_flush.h"
#include "state_tracker/st_texture.h"
*/
_mesa_HashRemove(ctx->Shared->TexObjects, delObj->Name);
- st_TextureReleaseAllSamplerViews(ctx, delObj);
+ st_texture_release_all_sampler_views(st_context(ctx), delObj);
/* Unreference the texobj. If refcount hits zero, the texture
* will be deleted.
return dst_format;
}
-/**
- * Called via ctx->Driver.TextureRemovedFromShared()
- * When texture is removed from ctx->Shared->TexObjects we lose
- * the ability to clean up views on context destruction, which may
- * lead to dangling pointers to destroyed contexts.
- * Release the views to prevent this.
- */
-void
-st_TextureReleaseAllSamplerViews(struct gl_context *ctx,
- struct gl_texture_object *texObj)
-{
- struct st_context *st = st_context(ctx);
- st_texture_release_all_sampler_views(st, texObj);
-}
-
void
st_FreeTextureImageBuffer(struct gl_context *ctx,
struct gl_texture_image *texImage)
struct gl_texture_object *tObj,
GLuint cubeMapFace);
-void st_TextureReleaseAllSamplerViews(struct gl_context *ctx,
- struct gl_texture_object *texObj);
void st_FreeTextureImageBuffer(struct gl_context *ctx,
struct gl_texture_image *texImage);
void st_MapTextureImage(struct gl_context *ctx,