GPU driverDraft
Maturity: experimental. This is the largest and least finished stream. The hardware, the way the code reaches it and the results are on the page of each generation; the table at the end links them. Display output has its own page.
What the drivers are#
Windows has no driver for the Apple GPU, so the tree contains a kernel-mode driver, a user-mode driver and the supporting tools.
| Component | Directory | Role |
|---|---|---|
agxkmd |
win/agxkmd |
WDDM kernel-mode miniport, Display class, bound to the ACPI node ACPI\OBG0001; render-only by default (the INF value DisplayMode is 0) |
agxdod |
win/agxkmd/dod |
display-only miniport bound to ACPI\OBD0001; see Display |
agxsys |
win/agxkmd/sys |
a plain WDM driver (System class) that hosts the same core on the same GPU node without the Windows graphics kernel; an alternative package to agxkmd |
agxumd |
win/agxumd |
user-mode driver DLL; exports OpenAdapter12 and OpenAdapter10_2 (the Direct3D 12 and Direct3D 10/11 entry points) |
avd |
win/agxkmd/avd |
video decode support in the kernel driver, with its own host-side tools and tests |
Within agxkmd, core/ is the operating-system-independent part:
power-on, the GPU's address translation, the coprocessor mailbox and its
firmware protocol, command rings, firmware ring draining, job submission
and fences, and a bring-up ladder that stops at the first step it cannot
justify. Steps whose behaviour the project has not established are coded as
an explicit "unresolved" stop rather than a guess. wddm/ is the only code
that includes Windows headers. The driver reads a registry value to decide
whether a start is armed; unarmed, it only reads and logs.
The user-mode driver implements a native Direct3D 11 path, its own
formats, resource layout, command encoding and shader front end. Part of
its layout code is a port of the MIT-licensed Mesa Asahi layout code;
win/agxumd/NOTICE carries the notice.
Several INF variants exist, differing in which user-mode driver slots they
register: agxkmd.inf (no user-mode driver), agxkmd-umd.inf,
agxkmd-umd-d3d11.inf, agxkmd-umd-11on12.inf, agxkmd-umd-4slot.inf.
They share one hardware ID and are alternatives: install one.
A comment in the agxsys source states why that variant exists: on the
test machine, loading a Display-class driver blanked the panel.
Build and host tests#
- Kernel driver:
win/agxkmd/build.cmd, run in an EWDK ARM64 cross-build environment (the script asks forWDKContentRoot). It compilescore\*.candwddm\*.cwith warnings as errors, linksagxkmd.sys, stamps the INF, makes the catalogue withInf2Cat /os:10_NI_ARM64, creates a self-signed test certificate withmktestcert.ps1if none exists, signs withsign.ps1, and then buildsagxdodandagxsys. Output goes toobj\. A further variant of the same sources,agxkmd-init, is compiled against a second, older WDK that must already be staged at a fixed path; without it that last step stops with a message, after the main drivers are built. - Scripted build: a wrapper script drives
build.cmdon a remote Windows machine; it assumes a particular build machine, so usebuild.cmddirectly in your own EWDK environment. The stream's own README inwin/agxkmdhas the build notes. - User-mode driver:
win/agxumd/build-m2.cmdbuildsagxumd.dllunsigned for ARM64 (or x64 for a harness) with plainclandlink. It embeds shader packs generated by the Python scripts underm2/. - Host tests:
make -C tests/agxkmd_host testandmake -C tests/agxumd_host test. Some tests need the NuGet WDK headers and are skipped without them.
Install and load follow the overview.
Generations#
The hardware reality of this stream, per generation:
| Generation | Page |
|---|---|
| M5 Series | M5 Series |