mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +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> (cherry picked from commit25723e3a37)
This commit is contained in:
parent
84e530b09e
commit
6f7d6ce849
2 changed files with 5 additions and 6 deletions
|
|
@ -504,7 +504,7 @@
|
|||
"description": "screenshot-layer: Fix leftover VK queues in the map at DeviceDestroy.",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "111faf215886a25ce855ca15354d5651bd3d972b",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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