mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 04:30:37 +02:00
zink: free descriptor buffer maps on batch state destroy
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21100>
This commit is contained in:
parent
4f8ba2b9aa
commit
e1e4ddcf10
1 changed files with 2 additions and 0 deletions
|
|
@ -1252,6 +1252,8 @@ zink_batch_descriptor_deinit(struct zink_screen *screen, struct zink_batch_state
|
|||
}
|
||||
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(bs->dd.db); i++) {
|
||||
if (bs->dd.db_xfer[i])
|
||||
pipe_buffer_unmap(&bs->ctx->base, bs->dd.db_xfer[i]);
|
||||
if (bs->dd.db[i])
|
||||
screen->base.resource_destroy(&screen->base, &bs->dd.db[i]->base.b);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue