From c95b646e234daa5cf69f53d9e521a88f3cd6a94a Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 5 Oct 2023 16:45:01 -0500 Subject: [PATCH] vulkan/queue: Use _mem_signal_temp instead of signal_mem_sync The two checks should be equivalent. This just lets us use data in struct vk_queue_submit rather than a local boolean. Reviewed-By: Mike Blumenkrantz Part-of: --- src/vulkan/runtime/vk_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/runtime/vk_queue.c b/src/vulkan/runtime/vk_queue.c index 91c9968fdbd..19bf55965a6 100644 --- a/src/vulkan/runtime/vk_queue.c +++ b/src/vulkan/runtime/vk_queue.c @@ -976,7 +976,7 @@ vk_queue_submit(struct vk_queue *queue, vk_queue_push_submit(queue, submit); - if (signal_mem_sync) { + if (submit->_mem_signal_temp != NULL) { /* If we're signaling a memory object, we have to ensure that * vkQueueSubmit does not return until the kernel submission has * happened. Otherwise, we may get a race between this process