-
-
Notifications
You must be signed in to change notification settings - Fork 122
Description
Zeta and Fushi get a validation error:
Vulkan ERROR: Code 1402107823 : vkQueueSubmit(): pSubmits[0].pSignalSemaphores[0] (VkSemaphore 0x80000000008) is being signaled by VkQueue 0x55aad0edb8d0, but it may still be in use by VkSwapchainKHR 0xa000000000a.
Here are the most recently acquired image indices: [0].
(brackets mark the last use of VkSemaphore 0x80000000008 in a presentation operation)
Swapchain image 0 was presented but was not re-acquired, so VkSemaphore 0x80000000008 may still be in use.
Vulkan insight: One solution is to assign each image its own semaphore. Here are some common methods to ensure that a semaphore passed to vkQueuePresentKHR is not in use and can be safely reused:
a) Use a separate semaphore per swapchain image. Index these semaphores using the index of the acquired image.
b) Consider the VK_EXT_swapchain_maintenance1 extension. It allows using a VkFence with the presentation operation.
The Vulkan spec states: Each binary semaphore element of the pSignalSemaphores member of any element of pSubmits must be unsignaled when the semaphore signal operation it defines is executed on the device (https://docs.vulkan.org/spec/latest/chapters/cmdbuffers.html#VUID-vkQueueSubmit-pSignalSemaphores-00067)
OGRECave/ogre-next@71ce54a might help with a fix.