Module: Mesa Branch: main Commit: f59665bb62b579c6cc26155a26ce557f9f3357d2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f59665bb62b579c6cc26155a26ce557f9f3357d2
Author: Mary Guillemard <mary.guillem...@collabora.com> Date: Mon Nov 27 10:54:37 2023 +0100 venus: Do not submit batch manually when no feedback is required This fixes hangs with Zink on piglit spec@arb_sparse_buffer tests caused by the double submission. Fixes: a55d26b566f ("venus: add back sparse binding support") Signed-off-by: Mary Guillemard <mary.guillem...@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26375> --- src/virtio/vulkan/vn_queue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/virtio/vulkan/vn_queue.c b/src/virtio/vulkan/vn_queue.c index 57c0670f24e..31e2d2d408d 100644 --- a/src/virtio/vulkan/vn_queue.c +++ b/src/virtio/vulkan/vn_queue.c @@ -1405,9 +1405,7 @@ vn_QueueBindSparse(VkQueue queue, /* if feedback isn't used in the batch, can directly submit */ if (!submit.has_feedback_fence && !submit.has_feedback_semaphore && !submit.has_feedback_query) { - result = vn_queue_bind_sparse_submit(&submit); - if (result != VK_SUCCESS) - return result; + return vn_queue_bind_sparse_submit(&submit); } for (uint32_t i = 0; i < submit.batch_count; i++) {