Commit 3051d29c authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Fix regression in sway (free the right texture)

parent da7c2388
......@@ -2706,8 +2706,8 @@ panfrost_tile_texture(struct panfrost_context *ctx, struct panfrost_resource *rs
* previous upload of the resource), free that one so we don't leak */
if (rsrc->entry[level] != NULL) {
p_entry->freed = true;
pb_slab_free(&ctx->slabs, &p_entry->base);
rsrc->entry[level]->freed = true;
pb_slab_free(&ctx->slabs, &rsrc->entry[level]->base);
rsrc->entry[level] = p_entry;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment