zink.apple: Collection of fixes to allow Zink to startup and partially run on macOS
These changes get mesa
and zink
able to run glxino on macOS using xquartz.
Anything with a WSI/kopper window will still fail as will a lot of other stuff.
Fix include:
- Adjusting for the MoltenVK renaming and relocating of header files in the last 4-5 version Vulkan SDK version. Does not compile for Vulkan SDK 1.3.234 and earlier.
- Used the
VK_KHR_portability_enumeration
extension that is now required for MoltenVK, by the Vulkan spec, as it is a layered implementation. - Stopped the use of
VkFormatProperties3
on drivers that are API 1.2, MoltenVK is presently one of these and does not fill in the expected locations. - Disabled MESA_PRIM_QUADS
- Stopped WSI from killing/terminating the application due to a mix of WSI XCB and macOS support. I will log an issue against this once it has been merged.
Tested against Vulkan SDK versions: 1.3.250, 1.3.261, 1.3.268, 1.3.275
These changes are enough to get glxinfo
from demos
working. Other applications, like glxgears
, do not work due to the WSI issues.