mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
lavapipe: Reset the free_cmd_buffers list in TrimCommandPool
We delete all the command buffers but they're still in the list so future allocations may try to re-use them post-free and another trim will re-delete them. Fixes:b38879f8c5("vallium: initial import of the vulkan frontend") Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15311> (cherry picked from commit66cb64c8ad)
This commit is contained in:
parent
e3ff6df798
commit
85c8320385
2 changed files with 2 additions and 1 deletions
|
|
@ -202,7 +202,7 @@
|
|||
"description": "lavapipe: Reset the free_cmd_buffers list in TrimCommandPool",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "b38879f8c5f57b7f1802e433e33181bdf5e72aef"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -265,6 +265,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_TrimCommandPool(
|
|||
&pool->free_cmd_buffers, pool_link) {
|
||||
lvp_cmd_buffer_destroy(cmd_buffer);
|
||||
}
|
||||
list_inithead(&pool->free_cmd_buffers);
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL lvp_CmdDrawMultiEXT(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue