From a820dc4a8e96239e60fd5478dbe34484396212cb Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 19 May 2022 18:54:09 -0500 Subject: [PATCH] anv/wsi: Stop resetting semaphores This will happen automatically when they're waited on by the dummy submit in wsi_common_queue_present(). Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_wsi.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index d66034a2537..5e98673e275 100644 --- a/src/intel/vulkan/anv_wsi.c +++ b/src/intel/vulkan/anv_wsi.c @@ -112,17 +112,6 @@ VkResult anv_QueuePresentKHR( _queue, 0, pPresentInfo); - for (uint32_t i = 0; i < pPresentInfo->waitSemaphoreCount; i++) { - VK_FROM_HANDLE(vk_semaphore, semaphore, pPresentInfo->pWaitSemaphores[i]); - /* From the Vulkan 1.0.53 spec: - * - * "If the import is temporary, the implementation must restore the - * semaphore to its prior permanent state after submitting the next - * semaphore wait operation." - */ - vk_semaphore_reset_temporary(&queue->device->vk, semaphore); - } - u_trace_context_process(&device->ds.trace_context, true); return result;