Free Apple GPU drivers in Asahi Linux
Summary
Alyssa Rosenzweig and Asahi Lina release the first usable free Apple Silicon GPU stack for Asahi Linux. The alpha supported OpenGL 2.1 and OpenGL ES 2.0. With it, GNOME, KDE and older games ran at 4K with 60 frames per second.
Ideas
- The kernel part manages memory and submits work to the GPU.
- Mesa translates OpenGL calls into Apple-specific command structures.
- A NIR backend compiles shaders for Apple's proprietary instruction set.
- Existing DRM and Gallium3D infrastructure reduces project-specific work.
- Early OpenGL support enables accelerated desktops before complete Vulkan.
Insights
- Layers allow small teams to divide up complex driver work sensibly.
- Open infrastructure multiplies the benefit of individual reverse engineering successes.
- A usable alpha driver needs clearly communicated limits and fallback paths.
Facts
- Kernel and Mesa had to be updated together because of the unstable UAPI.
Recommendations
- Always keep kernel and Mesa packages at matching versions.
- Collect diagnostic data with
asahi-diagnosewhen the GPU hangs.
References
Links to the original source and the Web Archive open in a new tab.