Ensure VkQueue external sync between flush_queue and TC.
Cc: mesa-stable
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25733>
return false;
zink_kopper_present_queue(screen, res);
+ simple_mtx_lock(&screen->queue_lock);
error = VKSCR(QueueWaitIdle)(screen->queue);
+ simple_mtx_unlock(&screen->queue_lock);
+
simple_mtx_lock(&screen->semaphores_lock);
util_dynarray_append(&screen->semaphores, VkSemaphore, acquire);
simple_mtx_unlock(&screen->semaphores_lock);