Mesa (main): anv/wsi: Stop resetting semaphores
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Jun 10 02:14:01 UTC 2022
Module: Mesa
Branch: main
Commit: a820dc4a8e96239e60fd5478dbe34484396212cb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a820dc4a8e96239e60fd5478dbe34484396212cb
Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date: Thu May 19 18:54:09 2022 -0500
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 <bas at basnieuwenhuizen.nl>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4037>
---
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;
More information about the mesa-commit
mailing list