| Building a Linux GPU Driver for the M4 Mac Mini in One Month(codyho.dev) | |
| 339 points by ADevWithAnIdea 15 hours ago | 193 comments | |
tl;dr: Two developers reverse-engineered Apple's M4 GPU and built a clean-room, OpenGL ES 3.0-compliant Linux driver (kernel + Mesa userspace) in about a month, heavily leveraging LLM agents (Codex/Claude) alongside a custom hypervisor to trace macOS's firmware ABI. The driver already runs Minecraft at 200fps and WebGL in Chrome/Firefox, though upstreaming is blocked pending the still-unmerged M1/M2 Asahi kernel driver. Interestingly, a "Mesa-first" workflow outperformed a "hardware-RE-first" approach because it kept the LLM grounded in concrete goals rather than pedantic completeness. | |
HN Discussion:
| |