Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan Synchronization Error #802

Closed
JonahGoldsmith opened this issue Feb 13, 2024 · 3 comments
Closed

Vulkan Synchronization Error #802

JonahGoldsmith opened this issue Feb 13, 2024 · 3 comments

Comments

@JonahGoldsmith
Copy link

JonahGoldsmith commented Feb 13, 2024

Currently if you run Wicked Engine Editor or the Template Projects you will get spammed with validation errors if running VERBOSE and VULKAN. This is due to the imageAcquiredSemaphore associated with the Swapchain not finishing its wait operation before trying to present. After digging deep, it seems like we only wait on the fence associated with the imageAcquiredSemaphore AFTER presentation. Adding vkWaitForFences right before presentation does fix the problem but may not be the smartest solution...

To reproduce this error do these steps:
Clone repo. Build Solution. Set TemplateWindows as startup project. Build and Run.

Nothing happens yet.
Now in the commandline arguments: -vulkan and -gpu_verbose
Now you will see the validation errors.

@turanszkij
Copy link
Owner

I don't see these errors. What's the version of your validation layers / vulkan SDK?

@turanszkij
Copy link
Owner

Error comes up with latest Vulkan SDK, investigating...

@turanszkij
Copy link
Owner

I added buffering to acquire semaphores. I thought semaphore is supposed to be GPU only, but it looks like vkAcquireNextImageKHR uses it from the CPU too since otherwise we wouldn't get validation warning immediately at this call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants