mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 18:50:10 +01:00
zink: wait for sparse queue to go idle
When destroying the context we should also wait for the sparse queue to go idle. cc: mesa-stable Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35750>
This commit is contained in:
parent
e91029c82d
commit
8ea0b00a75
1 changed files with 9 additions and 0 deletions
|
|
@ -138,6 +138,15 @@ zink_context_destroy(struct pipe_context *pctx)
|
|||
|
||||
if (result != VK_SUCCESS)
|
||||
mesa_loge("ZINK: vkQueueWaitIdle failed (%s)", vk_Result_to_str(result));
|
||||
|
||||
if (screen->queue_sparse && screen->queue_sparse != screen->queue) {
|
||||
simple_mtx_lock(&screen->queue_lock);
|
||||
VkResult result = VKSCR(QueueWaitIdle)(screen->queue_sparse);
|
||||
simple_mtx_unlock(&screen->queue_lock);
|
||||
|
||||
if (result != VK_SUCCESS)
|
||||
mesa_loge("ZINK: vkQueueWaitIdle failed (%s)", vk_Result_to_str(result));
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(ctx->program_cache); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue