mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
screenshot-layer: Fix leftover VK queues in the map at DeviceDestroy.
Noticed when the compiler said device_destroy_queues() was unused.
Fixes: 111faf2158 ("vulkan/screenshot-layer: Correct queueFamilyIndex source")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41299>
This commit is contained in:
parent
4c46cd8e9d
commit
25723e3a37
1 changed files with 4 additions and 5 deletions
|
|
@ -333,21 +333,20 @@ static void destroy_queue(struct queue_data *data)
|
|||
ralloc_free(data);
|
||||
}
|
||||
|
||||
static void device_destroy_queues(struct device_data *data)
|
||||
static void destroy_device_data(struct device_data *data)
|
||||
{
|
||||
loader_platform_thread_lock_mutex(&globalLock);
|
||||
|
||||
struct queue_data *tmp_queue = VK_NULL_HANDLE;
|
||||
for (auto it = data->queue_data_head; it != VK_NULL_HANDLE;) {
|
||||
tmp_queue = it->next;
|
||||
destroy_queue(it);
|
||||
it = tmp_queue;
|
||||
}
|
||||
}
|
||||
|
||||
static void destroy_device_data(struct device_data *data)
|
||||
{
|
||||
loader_platform_thread_lock_mutex(&globalLock);
|
||||
unmap_object(HKEY(data->device));
|
||||
ralloc_free(data);
|
||||
|
||||
loader_platform_thread_unlock_mutex(&globalLock);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue