KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.33k stars 648 forks source link

Validation Layer error in api sample swapchain_recreation #1003

Closed asuessenbach closed 6 months ago

asuessenbach commented 7 months ago

When starting the api sample swapchain_recreation, I get the following Validation Error, triggered in SwapchainRecreation::acquire_next_image:

Validation Error: [ VUID-vkAcquireNextImageKHR-semaphore-01779 ] Object 0: handle = 0xec4bec000000000b, type = VK_OBJECT_TYPE_SEMAPHORE; | MessageID = 0x5717e75b | vkAcquireNextImageKHR(): Semaphore must not have any pending operations. The Vulkan spec states: If semaphore is not VK_NULL_HANDLE it must not have any uncompleted signal or wait operations pending (https://vulkan.lunarg.com/doc/view/1.3.280.0/windows/1.3-extensions/vkspec.html#VUID-vkAcquireNextImageKHR-semaphore-01779)

Build with VS2022, run on NVIDIA GPU.

SaschaWillems commented 7 months ago

This is a false validation and has been fixed in the layers recently, but afair didn't make it into the SDK. If you compile validation from github, that error no longer shows up.

SaschaWillems commented 6 months ago

Retested with SDK 1.3.283 and I'm not seeing any validation. Closing this then.