Mesa 22.0 Zink Lands macOS Build Fix For OpenGL On Vulkan Via MoltenVK On Metal
This patch was merged to Mesa 22.0-devel today to fix building of the Zink code on macOS. There are changes to adapt to DMA-BUF not being available on macOS, changes for MoltenVK use, and additional build arguments necessary.
Mesa's build dependencies on macOS can be installed via Brew and then Mesa can be configured with the appropriate build options for MoltenVK usage and Zink to get things successfully building on macOS. More details in this merge request.
There likely are far more bugs for Zink on macOS than Linux especially with having to go through MoltenVK to Metal, but interesting effort nevertheless and will be important if Apple ends up removing the OpenGL support completely from its current deprecated but still available state.
Zink on Linux made remarkable progress this year with OpenGL 4.6 support and performance that is increasingly competitive to the native OpenGL hardware drivers. From the end of November see Zink Is Ending 2021 In Fantastic Shape For OpenGL Over Vulkan.