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>
This commit is contained in:
parent
719b949575
commit
66cb64c8ad
|
@ -265,6 +265,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_TrimCommandPool(
|
||||||
&pool->free_cmd_buffers, pool_link) {
|
&pool->free_cmd_buffers, pool_link) {
|
||||||
lvp_cmd_buffer_destroy(cmd_buffer);
|
lvp_cmd_buffer_destroy(cmd_buffer);
|
||||||
}
|
}
|
||||||
|
list_inithead(&pool->free_cmd_buffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
VKAPI_ATTR void VKAPI_CALL lvp_CmdDrawMultiEXT(
|
VKAPI_ATTR void VKAPI_CALL lvp_CmdDrawMultiEXT(
|
||||||
|
|
Loading…
Reference in New Issue