Skip to content

MoltenVK silently fails when loading vulkan versions greater than 1.2 and using dynamic rendering without explicitly requesting the extension #2460

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

Closed
9291Sam opened this issue Mar 1, 2025 · 2 comments

Comments

@9291Sam
Copy link

9291Sam commented Mar 1, 2025

As noted here in my comment on this issue.
#1810 (comment)

MoltenVK will fail with a very tricky to debug segmentaion fault when using dynamic rendering and specifying the application's API version as greater than 1.2. I think that this should be an assertion failure to make this easier to debug for others in the future as when requesting 1.3, one would expect that dynamic rendering would just work.

@9291Sam 9291Sam changed the title MoltenVK silently fails when loading vulkan versions greater than 1.2 MoltenVK silently fails when loading vulkan versions greater than 1.2 and using dynamic rendering without explicitly requesting the extension Mar 1, 2025
@dboyan
Copy link
Contributor

dboyan commented Mar 1, 2025

Not sure if it counts as a bug in a strict sense. First, MoltenVK doesn't support vulkan 1.3 yet (due to the lack of fully functional VK_KHR_maintenance4 implementation as of now), so requesting version 1.3 is not quite valid in the first place. At the same time, vulkan drivers have no obligation to validate API calls.

With current moltenvk, the only valid way to get dynamic rendering is to request vulkan <= 1.2 and enable the extension. Once version 1.3 is there (hopefully in the near future), one can do it by enabling version 1.3 directly, and at that time, things should properly work (otherwise, it would be considered a legitimate bug).

@cdavis5e
Copy link
Collaborator

cdavis5e commented Mar 1, 2025

Vulkan 1.3 is coming soon, but until then, you won't be able to create a 1.3 device with MoltenVK.

@cdavis5e cdavis5e closed this as completed Mar 1, 2025
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

3 participants