mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
zink: free sparse page for miptail on uncommit
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29818>
This commit is contained in:
parent
0277d0321a
commit
a7f86e38ca
1 changed files with 5 additions and 0 deletions
|
|
@ -1137,6 +1137,11 @@ zink_bo_commit(struct zink_context *ctx, struct zink_resource *res, unsigned lev
|
|||
util_dynarray_append(&ctx->bs->tracked_semaphores, VkSemaphore, cur_sem);
|
||||
else
|
||||
ok = false;
|
||||
ok = sparse_backing_free(screen, backing[i]->bo, backing[i], backing_start[i], backing_size[i]);
|
||||
if (!ok) {
|
||||
/* Couldn't allocate tracking data structures, so we have to leak */
|
||||
fprintf(stderr, "zink: leaking sparse backing memory\n");
|
||||
}
|
||||
}
|
||||
goto out;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue