intel_image->base.Base.Level,
old_mt);
- intel_miptree_release(intel, &intel_image->mt);
+ intel_miptree_release(&intel_image->mt);
intel_image->mt = new_mt;
intel_renderbuffer_set_draw_offset(irb, intel_image, att->Zoffset);
void
-intel_miptree_release(struct intel_context *intel,
- struct intel_mipmap_tree **mt)
+intel_miptree_release(struct intel_mipmap_tree **mt)
{
if (!*mt)
return;
void intel_miptree_reference(struct intel_mipmap_tree **dst,
struct intel_mipmap_tree *src);
-void intel_miptree_release(struct intel_context *intel,
- struct intel_mipmap_tree **mt);
+void intel_miptree_release(struct intel_mipmap_tree **mt);
/* Check if an image fits an existing mipmap tree layout
*/
intelDeleteTextureObject(struct gl_context *ctx,
struct gl_texture_object *texObj)
{
- struct intel_context *intel = intel_context(ctx);
struct intel_texture_object *intelObj = intel_texture_object(texObj);
- intel_miptree_release(intel, &intelObj->mt);
+ intel_miptree_release(&intelObj->mt);
_mesa_delete_texture_object(ctx, texObj);
}
intel_free_texture_image_buffer(struct gl_context * ctx,
struct gl_texture_image *texImage)
{
- struct intel_context *intel = intel_context(ctx);
struct intel_texture_image *intelImage = intel_texture_image(texImage);
DBG("%s\n", __FUNCTION__);
- intel_miptree_release(intel, &intelImage->mt);
+ intel_miptree_release(&intelImage->mt);
if (texImage->Data) {
_mesa_free_texmemory(texImage->Data);
/* Unreference the miptree to signal that the new Data is a
* bare pointer from mesa.
*/
- intel_miptree_release(intel, &intelImage->mt);
+ intel_miptree_release(&intelImage->mt);
}
}
}
* before, and any lower levels would fit into our miptree.
*/
if (intelImage->mt) {
- intel_miptree_release(intel, &intelObj->mt);
+ intel_miptree_release(&intelObj->mt);
intel_miptree_reference(&intelObj->mt, intelImage->mt);
}
}
intelImage->base.Base.Face,
intelImage->base.Base.Level, intelImage->mt);
- intel_miptree_release(intel, &intelImage->mt);
+ intel_miptree_release(&intelImage->mt);
}
else {
assert(intelImage->base.Base.Data != NULL);
/* Fallback case:
*/
if (firstImage->base.Base.Border) {
- if (intelObj->mt) {
- intel_miptree_release(intel, &intelObj->mt);
- }
+ intel_miptree_release(&intelObj->mt);
return GL_FALSE;
}
intelObj->mt->width0 != firstImage->base.Base.Width ||
intelObj->mt->height0 != firstImage->base.Base.Height ||
intelObj->mt->depth0 != firstImage->base.Base.Depth)) {
- intel_miptree_release(intel, &intelObj->mt);
+ intel_miptree_release(&intelObj->mt);
}