The Asahi Linux project has released conformant OpenGL 4.6 and OpenGL ES 3.2 drivers for Apple M1/M2 hardware, available via Fedora Asahi Remix. Unlike Apple's own non-conformant OpenGL 4.1 drivers, these open-source Mesa-based drivers pass over 100,000 conformance tests. The post details the engineering challenges overcome, including implementing geometry shaders, tessellation, and transform feedback via compute shaders on hardware that lacks native support. A deep dive into buffer and image robustness implementation reveals clever tricks: clamping out-of-bounds vertex buffer accesses using per-attribute address rewriting, leveraging GPU preambles to make robustness arithmetic essentially free for uniform buffers, and working around a hardware quirk in mipmap level clamping by forcing out-of-bounds X coordinates instead of branching on a vector result. The project is also progressing toward Vulkan support.

10m read timeFrom alyssarosenzweig.ca
Post cover image

Sort: