mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-06 08:00:34 +02:00
vulkan/queue: Destroy wait temps if they are skipped
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6223
Fixes: 8a11d2a31b ("vulkan: Add a dummy sync type")
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Tested-by: Jakob Bornecrantz <jakob@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15727>
This commit is contained in:
parent
5b4e41e4db
commit
4489933842
1 changed files with 9 additions and 1 deletions
|
|
@ -303,8 +303,16 @@ vk_queue_submit_final(struct vk_queue *queue,
|
|||
continue;
|
||||
|
||||
/* Waits on dummy vk_syncs are no-ops */
|
||||
if (vk_sync_type_is_dummy(submit->waits[i].sync->type))
|
||||
if (vk_sync_type_is_dummy(submit->waits[i].sync->type)) {
|
||||
/* We are about to lose track of this wait, if it has a temporary
|
||||
* we need to destroy it now, as vk_queue_submit_cleanup will not
|
||||
* know about it */
|
||||
if (submit->_wait_temps[i] != NULL) {
|
||||
vk_sync_destroy(queue->base.device, submit->_wait_temps[i]);
|
||||
submit->waits[i].sync = NULL;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
/* For emulated timelines, we have a binary vk_sync associated with
|
||||
* each time point and pass the binary vk_sync to the driver.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue