A macOS driver for AMD Radeon RDNA 4 graphics cards (Navi 48: RX 9070 XT, RX 9070, RX 9070 GRE) on x86_64 Hackintosh. It is a Lilu plugin, injected by OpenCore, built against MacKernelSDK; it cross-compiles on Apple Silicon and on Linux/WSL.
macOS has no driver for RDNA 3 or RDNA 4: Apple's AMD support ends at RDNA 2, and an RDNA 2 driver cannot be spoofed onto Navi 48 (its command streams are another architecture's). AMDRadeonRDNA4 drives the card itself:
- Displays: up to four, on DisplayPort and HDMI, with every mode the monitor offers, mode switching, hot-plug,
display sleep and system sleep. The display controller (DCN 4.01) is programmed by the kext, after
amdgpu's display core. - Metal, OpenGL and Vulkan for the desktop and apps: macOS's own paravirtual GPU driver runs on the card, and the
kext carries out its work on the RX 9070's hardware (build with
make PVGPU=1). WindowServer composites on the card; Metal apps, OpenGL apps and Vulkan apps (through MoltenVK) draw on it. - Compute: the GFX12 command processor, its rings, memory management and a compute runtime for gfx1201 kernels, written from scratch.
Versions and what each one changed are in CHANGELOG.md; branches, version numbers and releases in CONTRIBUTING.md. Until October 2026 the driver was called RDNA4FB, and older log files carry that name.
| Card | Chip | PCI ID (revision) | Status |
|---|---|---|---|
| Radeon RX 9070 XT | Navi 48 (gfx1201) | 1002:7550 (0xC0) |
Supported. The card everything is developed and tested on. |
| Radeon RX 9070 | Navi 48 (gfx1201) | 1002:7550 (0xC3) |
Supported. Ran the paravirtual GPU under Sequoia 15.8.2 (the measurements of PR 6). |
| Radeon RX 9070 GRE | Navi 48 (gfx1201) | 1002:7550 (0xC2) |
Recognised and named, its 48 compute units reported; needs testing (not yet run on one). |
| Radeon AI PRO R9700 | Navi 48 (gfx1201) | 1002:7551 |
Matched and named; needs testing (not yet run on one). |
| Radeon RX 9060 XT, RX 9060 | Navi 44 (gfx1200) | 1002:7590 |
Not supported yet. Another chip: its own firmware, IP versions and display paths. |
Everything that differs between the Navi 48 cards (VRAM size, shader engines, display paths, the compute pool's
place) is read from the card, not assumed (src/sku.hpp holds only the names and compute-unit counts).
| macOS | Status |
|---|---|
| Tahoe 26.6.2 | Tested: the main test system. Everything in Features runs here, Metal, OpenGL and Vulkan included. |
| Tahoe 26.0 - 26.6.1, 26.7 and later | Needs testing. The displays and compute should run as on 26.6.2. OpenGL on the card needs Tahoe 26.6.2's renderer (the kext patches it as it loads; any other version stays in software), and the paravirtual GPU's IOSurface lookup follows 26.6.2's IOSurface internals. |
| Sequoia 15.8.2 | Tested by a contributor (Jan Claußen, PR 6): the Metal desktop through the paravirtual GPU. OpenGL stays in software. |
| Sequoia 15.0 - 15.7 | Needs testing. |
| Sonoma 14, Ventura 13, Monterey 12 | Needs testing. The kext builds for macOS 11 and later; the paravirtual GPU path has not been tried on them. |
| Big Sur 11.6.6 / 11.7.10 | Tested for the displays (two displays, mode switching, hot-plug, display sleep) and compute, until October 2026. Metal through the paravirtual GPU not tried. |
Lilu 1.7.1 or newer is needed on macOS 26 (older Lilu turns itself off there).
- The display the firmware (GOP) lit is taken over without a flash or a reset: its EDID read over DisplayPort AUX or HDMI DDC, its modes offered to macOS, the monitor named in System Settings.
- Mode switching on DisplayPort and HDMI, from the monitor's EDID modes: HDMI up to 600 MHz (HDMI 2.0, scrambled, for a monitor that announces SCDC), DisplayPort with the link retrained by the kext for modes above what the firmware trained (2560x1440 at 144 Hz, 3840x2160 at 60 Hz). High refresh rates (1920x1080 at 120 and 144 Hz).
- Several displays: up to three beside the boot display (
rdna4-heads), two tested at once. The kext lights the extra pipes itself, with register sequences generated from Linux's own DCN 4.01 code: HDMI on either HDMI connector, DisplayPort with the kext's own link training (rdna4-head2dp=1), HDMI monitors behind passive DP++ adapters. - Hot-plug of the second display: unplugging takes it offline in macOS, plugging it in lights it again, also when it moves to the other HDMI connector.
- HiDPI and scaled modes, larger than the monitor ("looks like 2560x1440" on a 4K monitor), scaled on the card.
- Hardware cursor on every display, HiDPI included (WindowServer then redraws nothing as the pointer moves).
- Display sleep and system sleep: the displays sleep and wake; the system sleeps and wakes with the desktop back on every display a couple of seconds after a key press (the card is brought up again from nothing after its power loss).
- Cold start: the display engine can be started with the kext's own display firmware and lit from nothing, even
after a reset of the card (
rdna4-dmubload,rdna4-dcninit,rdna4-coldboot).
macOS has a Metal driver for one GPU Apple does not make: the paravirtual GPU of Apple's virtual machines
(AppleParavirtGPU, AppleParavirtGPUMetal.bundle). With make PVGPU=1 the kext publishes such a device on the card
and plays its host: Apple's driver and Metal run unchanged, and the kext carries out their command stream on the
RX 9070 (src/pvgpu.cpp). Shaders arrive as Apple's AIR and are translated to gfx1201 by a helper
(tools/metal/m3/air2amdgpu.cpp, LLVM).
- The desktop: WindowServer composites on the card, the paravirtual GPU's displays scanned out by the card's display engine. The login window, the Dock, Liquid Glass with its blurred glass, apps' windows, the animated wallpapers.
- Compute and blits; draws of every form (indexed, instanced, indirect, primitive restart), vertex descriptors, up to eight colour attachments, blending (dual-source blending too), the depth and stencil tests, 2x and 4x multisampling, sRGB, textures with mip levels, texture views and arrays, 3D textures, IOSurfaces.
- 3D games: MetalQuake at 3840x1878 in HDR at 60 frames a second.
- WebGL in Safari (
rdna4-pvmac2=1). tools/metal/m1/mtlprobe.mchecks it (mtlprobe all);sysctl debug.rdna4_pvnotrunlists the draws that could not run since the boot, by reason.
macOS's OpenGL 4.1 runs on Metal (AppleMetalOpenGLRenderer), and on the card through the paravirtual GPU, so
OpenGL programs draw on the card unchanged: kitty, Mixxx, Sublime Text. Tahoe 26.6.2's renderer only.
- Through MoltenVK on Metal: Vulkan apps and games run as on any Mac (vkQuake at 3840x2160, about 44 frames a
second). Once per user,
userspace/moltenvk/install.shturns MoltenVK's Metal argument buffers off, which the paravirtual driver does not have. - RADV, Mesa's Vulkan driver, built for macOS (
make mesa,userspace/vulkan/): Vulkan on the card without Metal, for programs run as root. Compute and rendering, swapchains shown on the boot display, Khronos's loader andvkcube(make vkcube).
rdna4-run and librdna4 run gfx1201 kernels (as clang builds them) on the card from programs run as root: buffers
in VRAM, DMA transfers, a 3-D dispatch, each client in an address space of its own. SGEMM at 10-12 TFLOPS, the matrix
units (WMMA) at 53 TFLOPS in FP16. See Compute runtime below.
- The power-management firmware runs its features: the graphics clock follows the load (3.2 GHz under load, about 250 MHz idle), the display clocks are held at what the displays need.
- Sensors: temperature, power, clocks and activity (
rdna4-run sensors).
- A Metal driver of our own in place of the paravirtual one. Work on it has started
(
docs/native-metal-spike.md): macOS loads our own Metal bundle for the card, which runs compute, render passes and ray queries (acceleration structures) on it, so far only for programs run as root that ask for it. - Ray tracing in apps: the paravirtual Metal driver has no acceleration structures (the native driver above has them).
- What the paravirtual Metal driver lacks: Metal heaps, argument buffers, indirect command buffers, texture swizzles.
Its shaders get at most 16 textures and samplers a stage and no scratch memory: Chrome's WebGL (Dawn) does not run
yet, which is why
rdna4-pvmac2is off by default. - Apps started before the paravirtual GPU is published (about 15 s after boot) draw on the CPU until restarted.
- A display plugged in after boot gets no paravirtual display (they are counted at boot).
- Display Stream Compression (DSC): 3840x2160 at 120 and 144 Hz.
- Variable refresh (FreeSync), DisplayPort MST, HDR output to the monitor.
- Audio over HDMI and DisplayPort.
- Hardware video decode and encode (VCN).
- Fan control; the power features held back so that they do not retune clocks under the lit displays (display DPM, memory and fabric deep sleep, GFXOFF).
- The Navi 44 cards (RX 9060 XT, RX 9060).
-
Use Lilu 1.7.1 or newer.
-
Copy
AMDRadeonRDNA4.kext(from a release, orBuild/AMDRadeonRDNA4-<version>-RELEASE/) toEFI/OC/Kexts/and add aKernel → Addentry after Lilu:Key Value BundlePathAMDRadeonRDNA4.kextExecutablePathContents/MacOS/AMDRadeonRDNA4PlistPathContents/Info.plistArchx86_64EnabledtrueNo code signing, SIP change or kext approval is involved: OpenCore injects it into the boot collection like Lilu itself.
-
Turn off other GPU kexts (WhateverGreen) so that nothing else claims the card.
-
(Optional) The card's full 2 MiB flash dump as
ATY,bin_imageunder the GPU's PciRoot path inDeviceProperties. Without it the driver reads IP discovery from VRAM and the VBIOS from the PCI expansion ROM (Discovery,Sourcein ioreg says which).
Keep a known-good copy of your EFI on a USB stick while testing. rdna4-off=1 turns the plugin off and -liluoff all
Lilu plugins; macOS then runs its stock framebuffer.
The release zips' README.txt says what each file is; unzipped into the Build/ folder of a checkout of the same tag,
the commands below work as written. To build it yourself: make PVGPU=1 all userspace metal-helper (the shader
translator builds LLVM for x86_64 in Build/llvm the first time, which takes a while).
On the Mac with the card, from the repository:
sudo tools/metal/m3/install-helper.sh Build/m3/x86_64/air2amdgpu # the shader translator (log: /var/log/rdna4-air2amdgpu.log)
sudo userspace/rdna4-iop/install.sh # sets CoreDisplay up for each boot (log: /var/log/rdna4-iop.log)
sudo userspace/rdna4-logd/install.sh # optional: each boot's kernel log in /var/log/rdna4
userspace/moltenvk/install.sh # as yourself, for Vulkan apps through MoltenVKBoot-args (in OpenCore's boot-args):
rdna4-compute=7 rdna4-gfx=2 rdna4-vm=1 rdna4-pvgpu=1 rdna4-pvgpu-disp=7 rdna4-pvgpu-delay=5
Without make PVGPU=1 (or these boot-args) the driver runs the displays and macOS draws in software.
All without a leading dash (name=1). The features above are on by default; these turn them off or change them.
| Boot-arg | Effect |
|---|---|
rdna4-off=1 |
The plugin hooks nothing; macOS runs its stock framebuffer. |
rdna4-modeset=0 |
Only the boot mode; no mode switching. |
rdna4-head2=0 |
No displays beside the boot display. |
rdna4-heads=<n> |
How many displays beside the boot display (1-3; default one per connector). |
rdna4-head2dp=1 |
Also displays on DisplayPort beside the boot display (off by default: one plugged in after boot gets no paravirtual display). |
rdna4-hotplug=0 |
No hot-plug of the second display (1: only log its pin). |
rdna4-syssleep=0 |
macOS refuses system sleep (as for any unsupported card). |
rdna4-nosleep=1 |
Display sleep does nothing (the screen stays on). |
rdna4-noedid=1 |
No EDID read (for a monitor that misbehaves on DDC). |
rdna4-boot4k=0 |
An HDMI boot display behind a passive DP++ adapter stays at what the firmware lit. |
rdna4-dpdual-khz=<kHz> |
The TMDS clock a passive DP++ adapter is taken to carry. |
rdna4-compute=<0-7> |
The compute bring-up stage (default 3: the power-management firmware and the display clocks; 7 with the runtime; 0 off). |
rdna4-gfx=2, rdna4-vm=1 |
The graphics ring, and an address space per client: needed for Metal. |
rdna4-pvgpu=1 |
The paravirtual GPU on the card (make PVGPU=1 builds): Metal, OpenGL, Vulkan through MoltenVK. |
rdna4-pvgpu-disp=7 |
The displays are the paravirtual GPU's (WindowServer composites on the card). |
rdna4-pvgpu-delay=<s> |
Publish the paravirtual GPU this many seconds after the plugin starts (default 25). |
rdna4-pvcursor=0 |
No hardware cursor (WindowServer draws the pointer into each frame). |
rdna4-pvgl=0 |
OpenGL in software. |
rdna4-pvmac2=1 |
The paravirtual device reports Mac GPU family 2: WebGL in Safari (Chrome's does not run yet). |
rdna4-pvscaled=0 |
No scaled modes larger than the monitor. |
rdna4-pvfast=1 |
Each size at its fastest refresh, not the one nearest 60 Hz. |
rdna4-dmubload=1, rdna4-dcninit=1, rdna4-coldboot=1 |
The display firmware of the kext's own; the display engine started from nothing; a real cold start from a reset card. |
rdna4-dispclk=<MHz>, rdna4-dcfclk=<MHz>, rdna4-uclk=<MHz>, rdna4-fclk=<MHz> |
The clock minimums asked of the power-management firmware (rdna4-dispclk=0: clocks left alone, no 4K). |
rdna4-vmshared=<0-2>, rdna4-hang=0 |
Where compute jobs run (1, the default: two shared kernel queues); recovery from a hung job off. |
rdna4-cursor=1 |
A hardware cursor without the paravirtual GPU (through Apple's framebuffer driver). |
rdna4-trace=1 |
Log every request Apple's framebuffer driver makes of ours. |
-rdna4dbg |
Lilu's debug logging for the plugin (Lilu DEBUG builds). |
Diagnostics and experiments (rdna4-modedump, rdna4-dmubping, rdna4-dmubhist, rdna4-dmubver, rdna4-smuping,
rdna4-ihdump, rdna4-ih, rdna4-pspdump, rdna4-dptrain, rdna4-wakediff, rdna4-clocks, rdna4-coldprobe,
rdna4-lutbypass, rdna4-8bpc, rdna4-pm, rdna4-sleeptest, rdna4-gfx*, rdna4-vm-*, rdna4-cursor*,
rdna4-pvgpu-class, rdna4-pvgpu-match, rdna4-accelcensus, ...) are described where they are used in src/ and
in docs/ (docs/index.md).
On a card without a macOS driver, macOS drives the firmware's framebuffer with Apple's generic IONDRVFramebuffer and
its boot NDRV, which knows one mode and nothing of the monitor. Every request that driver makes of its NDRV goes
through IONDRVFramebuffer::doDriverIO.
- Hook (
src/plugin.cpp): Lilu routesdoDriverIO; framebuffers on a Navi 48 card are answered by the kext, everything else by Apple's code. (A standaloneIOFramebufferkext cannot load: its framework lives in the system kernel collection, OpenCore injects into the boot one, and Tahoe closes/Library/Extensionsto ad-hoc signed kexts.) - Device (
src/device.cpp): BAR5 registers, the VBIOS, IP discovery, the pipe the firmware lit, the monitors' EDIDs, the mode table. - Answers (
src/ndrv.cpp): modes, timings, connection state, EDID and display power are answered from the kext's state; Apple's code keeps the IOFramebuffer side (mode caching, console, power management). - Displays: mode switches, extra pipes, link training and sleep go to the display engine, mostly through the
display microcontroller's (DMUB) commands, as
amdgpudoes them (src/modeset.cpp,src/pipe2.cpp,src/dptrain.cpp). - Compute (
src/compute.cpp,src/runtime.cpp): the PSP loads the firmware, then the SMU, the graphics and compute engines, the copy engines and the GPU's page tables come up. - Paravirtual GPU (
src/pvgpu.cpp,make PVGPU=1): a PCI device Apple'sAppleParavirtGPUmatches, whose command stream the kext reads and runs on the card; its displays are scanned out by the display engine (src/pvscanout.hpp).
What each layer found is published in the registry (AtomBIOS,*, Discovery,*, Pipe,*, Modes,Count,
VRAM,TotalMB, ...), visible with ioreg.
With rdna4-compute=7 the kext publishes RDNA4ComputeService, and programs run as root can run gfx1201 kernels as
clang builds them (clang -target amdgcn-amd-amdhsa -mcpu=gfx1201, then ld.lld -shared):
sudo rdna4-run info # stage, heap, the client's address space
sudo rdna4-run selftest # kernels with LDS and barriers, every result checked
sudo rdna4-run bench # transfers, VRAM bandwidth, SGEMM and WMMA against the CPU
sudo rdna4-run sensors # temperature, power, clocks
sudo rdna4-run load k.hsaco my_kernel # load a code object, describe a kernelFrom C, userspace/rdna4-run/librdna4.h:
rdna4_t gpu; rdna4_open(&gpu);
rdna4_buffer_t a; rdna4_alloc(&gpu, n * 4, &a); // a.gpu -> kernargs
rdna4_write(&gpu, &a, 0, host, n * 4);
rdna4_program_t k; rdna4_load(&gpu, elf, elfBytes, "vadd", &k);
uint64_t args[3] = { a.gpu, b.gpu, c.gpu };
uint32_t groups[3] = { n / 64, 1, 1 }, size[3] = { 64, 1, 1 };
rdna4_dispatch(&gpu, &k, groups, size, args, sizeof args, 1000, NULL);
rdna4_read(&gpu, &c, 0, host, n * 4);
rdna4_close(&gpu);Kernels get their kernargs and up to 64 KiB of LDS a work-group; kernels that need scratch memory or dispatch and queue pointers are refused at load, with the reason in the kernel log.
Clone with the submodules (git clone --recursive, or git submodule update --init; they are in lib/).
tools/build/fetch-firmware.sh # once: AMD's firmware for the compute bring-up, into firmware/amdgpu/
make # the kext and the programs (x86_64, macOS 11 and later)
make PVGPU=1 # with the paravirtual GPU (Metal, OpenGL, Vulkan through MoltenVK)
make PVGPU=1 metal-helper # the shader translator for it
make mesa && make vkcube # RADV and Khronos's vkcube
make CONFIG=DEBUG # unoptimised, with DEBUG defined
make test # host-side tests: parsers, EDID fixtures, the display engines' plans against Linux's
make clean # what make built (make distclean: all of Build/)The results go to Build/AMDRadeonRDNA4-<version>-<RELEASE|DEBUG>/ (the kext, and bin/ with the programs);
make product-dir prints that directory. The Makefile works with the GNU make 3.81 macOS ships and with BSD make;
AMDRadeonRDNA4.xcodeproj is a front for it.
On Linux / WSL, with an osxcross toolchain made from a macOS SDK
(Apple's ld64 is needed for kext bundles): tools/build/build-osxcross.sh. make test needs only clang.
VMTEST=1 builds also take QEMU's vmware-svga as theirs (no register work, a fixture EDID, mode switches resize the
VM display), for an OSX-KVM guest:
tools/build/build-osxcross.sh VMTEST=1
tools/vm/vm-opencore.sh --kext "$(make -s product-dir VMTEST=1)"/AMDRadeonRDNA4.kext --lilu ~/kexts/Lilu.kextemu/ holds a QEMU model of the RX 9070 XT (its PCI identity, BARs, the register state the GOP leaves, live engines
for what the kext polls, a GOP driver in its option ROM), so the build for the real card runs its own code paths in
the VM: tools/vm/emu-build.sh, then tools/vm/emu-boot.sh. The QEMU device is GPL-2.0-or-later and the GOP driver
BSD-2-Clause-Patent; the rest of the repository is BSD-3-Clause.
What each directory and source file is: docs/index.md. The design notes and measurements of the
paravirtual GPU are in docs/m0-pvgpu.md and docs/m1-stream.md, the native Metal driver's in
docs/native-metal-spike.md.