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

Assertion `imagesInFlight == get_config_number_of_presentable_images()' fails in certain conditions #157

Open
libreliu opened this issue Feb 10, 2023 · 0 comments

Comments

@libreliu
Copy link

Hi,

Thanks for the awesome library!

I'm using ArchLinux, and it seems when using AMD Integrated Graphics + mesa radv vulkan + kwin (wayland) , the assertion under avk::window::construct_backbuffers() will fail for the initial window creation.

Looking into the problem, it seems at least for some of the mesa-implemented vulkan drivers, the driver reports surface capabilities with minImageCount=3, maxImageCount=0, but taking 3 into the SwapChainCreateInfo will result in a swapchain with 5 images.

It seems that the same issue is also addressed in issues in a fork of mesa. According to Vulkan spec, it seems that implementations are able to create a swapchain with more images than requested.

A quick walkaround would be setting mainWnd->set_number_of_presentable_images(5u); from user side. But I think this might be worth noted in case someone ran into the same problem.

Thanks!

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

No branches or pull requests

1 participant