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

VulkanSDK post-1.2.198 is broken on macOS #323

Closed
ctrlcctrlv opened this issue Aug 22, 2022 · 3 comments
Closed

VulkanSDK post-1.2.198 is broken on macOS #323

ctrlcctrlv opened this issue Aug 22, 2022 · 3 comments
Labels
bug Something isn't working macOS urgent Urgent bug causing significant breakage. workaround-available

Comments

@ctrlcctrlv
Copy link
Collaborator

ctrlcctrlv commented Aug 22, 2022

Thanks @t01va and @eliheuer for helping me track this down.

This is currently blocked on aclysma/skulpin#108 (comment)

I know @aclysma doesn't have much time to work on Skulpin anymore so I'm already looking into how to apply the fix suggested on Stack Overflow to our skulpin branch

Workaround: Build with VulkanSDK 1.2.198 (per @Subject38 and @eliheuer).

@eliheuer
Copy link
Contributor

I was getting this error Failed to initialize Skulpin: VkCreateInstanceError(InstanceError(VkError(ERROR_INCOMPATIBLE_DRIVER))) when trying to run MFEKglif on an Intel mac today. The following steps fixed my problem

  1. brew install cmake
  2. Uninstall the newer version of the Vulkan SDK I had installed
  3. Install an older version of the Vulkan SDK, specifically 1.2.198

That fixed the problem for me and I was able to build and run MFEKglif.

@ctrlcctrlv
Copy link
Collaborator Author

@eliheuer I know exactly what's wrong now.

The new VulkanSDK requires to load an extension called VK_KHR_portability_enumeration.

Skulpin doesn't do this.

Rafx offers no way to do it. (Cf. aclysma/skulpin#108 (comment))

So basically, either @aclysma has to update rafx-api and close out that old TODO, or I have to fork rafx-api, hack it in probably much worse than he would as I'm far from an expert on 3D graphics lol, (but know enough to be dangerous,) then change MFEK/skulpin.rlib to use the as-yet-nonexistent MFEK/rafx.rlib and close this.

I'm gonna wait like a week or two for @aclysma since I'm not looking forward to writing those patches lol…it's way outside of my normal area of work but hopefully since I've documented so well what's wrong he can fix it easily.

@ctrlcctrlv
Copy link
Collaborator Author

Closing, fixed by egui. Thanks @lucasmerlin / @MatthewBlanchard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macOS urgent Urgent bug causing significant breakage. workaround-available
Projects
None yet
Development

No branches or pull requests

2 participants