-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
VkResult Error on macOS #6101
Comments
Error -9 is |
I'm on the newest macOS Version. And from what I know, it automatically updates with the newest updates, doesn't it? And the Vulkan examples, Cube etc. work. |
I don't know, I don't use macOS. But the error you get clearly points to an issue in your driver version or setup (assuming that the GPU part of the M1 Pro supports Vulkan). |
I have read some documentation, and look like this error is new in VulkanSDK 1.3.216 when using macOS. It's now mandatory to use the VK_KHR_PORTABILITY_subset extension.
If I get it to work, I will make a Pull-Request, maybe? Don't know if it's necessary… Will make my next comment, when I tried… |
Thanks for investigating. Yes, a detailed report and fix (either as comment here, or better as a PR) would be greatly welcome! One thing to be mindful of is that it is probable that the 3 listed symbols are recent additions to Vulkan headers, and therefore the new additions would need to be guarded by compile-time Something like: #if VK_HEADER_VERSION_COMPLETE >= VK_MAKE_API_VERSION(0, 1, 3, 216)
#define VULKAN_HAS_KHR_PORTABILITY
#endif
...
#ifdef VULKAN_HAS_KHR_PORTABILITY
// extra code
#endif (That's untested, and not 100% if it the correct way to do a compile-time Vulkan SDK check but it seems like it!) |
Did some drive-by testing as I had a machine handy and it doesn't seem to be quite compile-time enough:
On the plus side of things, ignoring the above problem and unconditionally adding the instance extensions and flag to the Tested with SDK versions 1.3.204.1, 1.3.211.0 and 1.3.236.0. Notable is that the extension is already available in .211 so for full testing of detection logic the .204 SDK should probably be considered as it's absent back then. |
Got it to work. Only added create_info.flags = VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR;
|
Added PR #6109 |
Closing this issue, because of the Pull-Request #6109. |
Getting this with imgui docking -- VkResult = -9 and abort, unless I use sudo in which case it runs fine |
I try to use ImGui on macOS (M1 Pro) with Vulkan. Vulkan is installed. When I try to run the example program example_glfw_vulkan it gives me this error:
[vulkan] Error: VkResult = -9 zsh: abort ./example_glfw_vulkan
How could I resolve this error, or do I have to use Metal, even though Vulkan should work on Mac, shouldn't it?
The text was updated successfully, but these errors were encountered: