Skip to content

About

Intel Xe graphics acceleration for macOS and Hackintosh: Metal and Vulkan on Iris Xe, Intel Arc and Core Ultra (Meteor Lake, Arrow Lake) iGPUs. The Linux i915 driver on XNU through FreeBSD drm-kmod, with Mesa ANV. Runs on Arrow Lake under macOS Tahoe 26 and, for a tester, on Meteor Lake under Sequoia. Still a test driver.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

105 stars

Watchers

3 watching

Forks

WTLIntelGfx: Intel Xe graphics acceleration for macOS (Hackintosh)

Renamed from XeGfx on 2026-10-31; the driver and its kexts are still called XeGfx. Old links redirect here.

Real GPU acceleration for Intel Core Ultra graphics on a Hackintosh. XeGfx gives Meteor Lake and Arrow Lake iGPUs Metal and Vulkan on macOS, so the desktop, the Dock's Liquid Glass and your apps draw on the Intel GPU instead of the CPU. Apple's drivers stop at Ice Lake and WhateverGreen can't help on Xe, so without a driver like this these machines run macOS with no acceleration at all.

What you get

  • Metal and Vulkan 1.4 on the Intel GPU. Apps see a Metal device named "Intel(R) Graphics" and a Vulkan device from Mesa's ANV.
  • An accelerated desktop. WindowServer composites the whole desktop on the Intel GPU, and the Dock renders its Liquid Glass effect.
  • The built-in panel at its real refresh rate. The panel is named from its EDID and runs at 165 Hz, with HiDPI modes.
  • It shows up like a real GPU. About This Mac says "Intel Xe Graphics", and System Information shows 24 GB of shared VRAM.
  • Hours of uptime. Sessions of 1, 2, 4 and 5.6 hours under a disk and Metal load script, on macOS Tahoe 26.7.1 and 26.7.2.

It runs today on:

  • Arrow Lake (Core Ultra 9 275HX, 8086:7D67): our test laptop, a Lenovo Legion 5 15IAX10, and a second 275HX laptop (ArrowWhatever).
  • Meteor Lake (Core Ultra 7 155H, 8086:7D55): a tester has Metal running on Sequoia with the XeGfx kernel driver unchanged and a few framebuffer and plugin tweaks of their own. A second one, on a ThinkBook 14+, runs WindowServer on 0.0.47 after moving the boot framebuffer's GGTT mapping, and on the released 0.0.48, which does the move itself (#13, notes).
  • Arrow Lake-H (Core Ultra 7 255H, 8086:7D51): a tester runs a desktop on a 3120x2080 panel, copying every frame for now (#14).

It's still a test driver. One kernel panic under heavy disk reads is open (see Status), so try it on a Mac you can afford to reboot, not one you depend on. Downloads are on the releases page, and the project page is labs.watchthelight.org/WTLIntelGfx.

The goal is one driver for every Xe generation, Tiger Lake through Lunar Lake plus Arc discrete cards, on every macOS from Big Sur 11 to Tahoe 26. Under the hood it runs Linux's i915 driver inside the macOS kernel (How it works).

Does it work on my machine?

Find your GPU's PCI ID with ioreg -l | grep -i '"device-id"' on macOS or lspci -nn | grep VGA on Linux. A report from your machine, working or not, is the most useful thing you can send (issue #3).

Family Example PCI IDs (8086:) Graphics State
Arrow Lake-S / HX (Core Ultra 200S, 200HX) 7D67 Xe-LPG runs: Metal, Vulkan, accelerated desktop (two laptops); stages 1 to 6 on a Z890 desktop with an AMD card driving the display (#15)
Meteor Lake (Core Ultra 100H, 100U) 7D55, 7DD5, 7D45, 7D40 Xe-LPG runs: Metal on two 155H laptops (tester reports, Sequoia), and on a 155H passed through to a QEMU/KVM guest (tester report, Sequoia and Ventura)
Arrow Lake-H / U (Core Ultra 200H, 200U) 7D51, 7DD1, 7D41 Xe-LPG(+) runs: desktop on a 255H with frames copied, not flipped (tester report, #14); stage 2 probe passes on a 225U 7D41 (tester report)
Tiger Lake (11th gen Core) 9A49, 9A40, 9A78, 9A60 Xe-LP (Iris Xe, UHD) stage 2 probe passes on 9A60 and 9A49 (tester reports); later stages need its own GuC firmware linked in
Alder Lake, Raptor Lake (12th to 14th gen mobile) 46A6, 46A3, 46A8, 4688, A7A0, A7A8, A788, A78B Xe-LP (Iris Xe, UHD) stage 2 probe passes on 46A6, 46A8 and on A788 in discrete mode, stages 1 to 3 on 46A3 (tester reports); later stages need their own GuC firmware
Intel Arc A-series (Alchemist) 56A0, 56A1, 5690 Xe-HPG stages 1 and 2 pass on an A770 passed through to a VM; stage 3 needs xegfx.pci_scan_all=1 because the card is not on bus 0 (#3)
Lunar Lake, Battlemage, Panther Lake 64A0, E20B, E20C Xe2 and later needs the xe driver, not i915 (issue #8)

If your Tiger Lake, Alder Lake or Raptor Lake laptop only needs its panel to work, look at WhateverXe and NootedGreen first. They run Apple's own Tiger Lake driver on your GPU and are further along on those chips. XeGfx exists because that route does not reach Meteor Lake, Arrow Lake or Arc, and because a driver built from i915 can follow Intel's Linux support to new chips.

How it works

XeGfx is not a GPU driver written from scratch. FreeBSD's drm-kmod already runs i915 on a non-Linux kernel through LinuxKPI, a layer that implements the Linux kernel API on top of FreeBSD's. XeGfx adds a small FreeBSD-kernel-API layer for XNU underneath LinuxKPI, so drm core and i915 build as one kext with their sources almost untouched. In userspace, Mesa's ANV Vulkan driver talks to it through a patched libdrm, and a Metal-to-Vulkan plugin runs on ANV. The plugin and the Metal accelerator kext are forks of NullMoth's NVIDIA driver, carried here from WTLNvidiaGfx, so this repository holds the whole Intel driver, kernel to Metal. docs/HOW-IT-WORKS.md walks through each layer.

Status (2026-10-28)

It works, for hours at a time. On the test laptop the Intel GPU runs real work for the kernel and for user processes, Vulkan and Metal both draw correctly, and since N-285 (2026-10-24) WindowServer composites the whole desktop on the Intel GPU through Metal and keeps it on the built-in panel, with the Dock's glass effect rendering. Since 0.0.45 that desktop stays up: 1, 2, 4 and 5.6 hours on N-296 to N-299, the longer runs under a disk and Metal load script, and 0.0.46 fixed the panic the 5.6 h run hit at restart (I-121). One panic is still open: a CPU rendezvous timeout (I-116) that comes back after hours of heavy disk reads (N-304). On 2026-10-28 the same 0.0.46 build passed N-305 on macOS 26.7.2 (25G332) unchanged: stages 1-7 and WindowServer stable on the Intel GPU. The drawing glitches on that desktop (I-119) are mostly fixed in the NvGfx xe plugin: on N-311 the cursor no longer draws as a square and Terminal text shows everywhere, after WindowServer got framebuffer fetch. What is left is bands of backdrop colour along full-width rows while typing; the fix for that is built but not yet tested on the Intel panel.

Everything below was proven on one machine: a Lenovo Legion 5 15IAX10 with an Intel Core Ultra 9 275HX (Arrow Lake-HX). Its integrated graphics are Xe-LPG, PCI ID 8086:7D67 (GMD_ID graphics 12.70, display 14), which i915 treats as part of the Meteor Lake family. It runs macOS Tahoe 26.7.1 (25G241), since 2026-10-28 26.7.2 (25G332), and since 2026-11-26 the 26.7.3 developer beta (25G416: stages 1-7 and WindowServer stable on the Intel GPU in N-384), with the BIOS in Hybrid graphics mode, so the built-in panel is wired to the Intel GPU. The boot IDs (N-xx) are test boots on that laptop.

Milestone Done when State
X1 compiles every drm core and i915 source compiles for the kernel target done, all 418 sources
X2 links one kext links against public KPIs only, no stubs on reachable paths done
X3 loads loads next to the firmware framebuffer and probes the GPU done, N-219
X4 GT up GuC loaded, a request completes, render node exists done, N-229
X5 ANV a Vulkan device, a compute pipeline and an offscreen draw done, N-234 (2026-10-22)
X5b Metal apps get a Metal device on the Intel GPU; compute and a draw come back right done, N-235 to N-238 (2026-10-22)
X6 desktop WindowServer composites on the Intel GPU and the panel shows it working, N-285 (2026-10-24); up for hours since N-296, one panic open (I-116)
X7 other laptops builds and boots on other Xe machines, with docs testers wanted

What each step showed on the 7D67:

  • GT up (N-229). The GuC firmware mtl_guc_70.bin (version 70.53.0) loads, with GuC submission, SLPC and RC enabled. A kernel request completed on each of the render, copy and compute engines (rcs0, bcs0, ccs0), and each one wrote a dword that the CPU read back.
  • Userspace (N-230). A user process opened /dev/dri/renderD128, created a context, mapped buffers and ran execbuffer on the render and copy engines, and the results read back correctly.
  • libdrm (N-233). drmGetDevices2 lists the GPU as 0000:00:02.0 8086:7d67, driver i915 1.6.0.
  • Vulkan through Mesa ANV (N-234). ANV creates a Vulkan 1.4 device (API 1.4.363), "Intel(R) Graphics (ARL)", and a compute pipeline on it. A draw test (tools/vkdraw on NvGfx xe, commit 9c9cbc3) cleared a 64x64 image to red in a render pass, drew a green triangle into it (exactly 512 green pixels), copied the image to a host buffer, and the CPU read back the right pixels.
  • Metal (N-235 to N-238). XeGfx's stage 7 hands the GPU to XeGfxAccel, NullMoth's NMXAccel accelerator built over XeGfx (kexts/XeGfxAccel). The Metal plugin (plugin/) then runs on ANV. Metal shows one device, "Intel(R) Graphics (ARL)". An MSL compute kernel fills 1024 values correctly, and a render pipeline draws a green triangle on red that reads back exactly. Getting there took three fixes. Render nodes are world-accessible, as on Linux. GFP_ATOMIC allocations get a reserve, because i915 allocates under spinlocks. Host-visible BOs use the GPU's snooping write-back PAT, because XNU keeps RAM write-back whatever cache mode an IOKit mapping asks for, and write-combining BOs lost cache lines to CPU write-backs.
  • Desktop (N-245 to N-260). WindowServer can't open /dev/dri from inside its sandbox, so libdrm now sends its ioctls through the accelerator's IOKit user client when the node is refused (0.0.28). With that, a restarted WindowServer composites on the Intel GPU through Metal. On N-258 it stayed up through the settle, put 425 frames on the panel and kept the desktop for two hours before a kernel panic (one CPU stopped answering). On N-260 the machine froze about 20 s in, with no panic report. Frames reach the panel through a copy into the firmware's framebuffer, because macOS does not yet send display-pipe transactions to this GPU, so the desktop is slow even when it runs.
  • Accelerated desktop (N-285 to N-289, 2026-10-24). WindowServer now runs on the Intel GPU and stays up: on N-285 it passed the guard's settle window and served the desktop for about four minutes, with 3660 display transactions and no failed frames. The fix that got it there was in the Metal plugin: WindowServer hands it some buffers that are not all writable memory, and importing those as host pointers lost the device about 20 s in, so the plugin now copies them instead. The Dock renders its Liquid Glass effect, which needs working GPU compositing. XeGfxIntelFB 0.5 sets the GPU's model name, so About This Mac and System Information show "Intel Xe Graphics".
  • What still breaks. One panic is understood and fixed: a lock that sleeps was taken inside an RCU read section on the mmap path WindowServer uses (0.0.42 takes the locks in the other order). The other is not: 15 to 45 seconds into some runs one CPU keeps interrupts off for over half a second and macOS panics because that CPU does not answer a rendezvous. GPU interrupts keep arriving and are handled right up to the end. 0.0.43 adds a watchdog that names that CPU and what it was running before macOS gives up. Turning the NVRAM trace off made it much rarer (on this firmware its NVRAM writes run in SMM, where a CPU cannot answer the rendezvous), but it came back on N-304 after 4 h 19 min under heavy disk reads with the trace off, so that was not the whole cause.

The open problems are tracked in WTLNvidiaGfx #12 and #18.

The source is at 0.0.46 (CHANGELOG), which is also the newest booted version. With the NVRAM trace off (xegfx.nvram_trace=0) the Intel desktop ran one hour on N-296, then two hours (N-297), four hours (N-298) and 5.6 hours (N-299) while a load script wrote about 225 GB to disk and ran Metal draws every 22 seconds. N-304 then hit I-116 after 4 h 19 min while another process read the kernel collections over and over, so the stall is rarer, not gone. 0.0.46 fixes the panic that N-299's restart hit (I-121). On the Intel GPU, System Information now shows 24 GB of shared VRAM, and the panel is named from its EDID and runs at 165 Hz with the HiDPI mode. The newest test build is the v0.0.46 prerelease. Desktop runs need the accelerator and plugin from this repository as well.

VedCloud's Meteor Lake port got to a GPU-composited desktop first: it runs an i915-derived driver with Metal and Vulkan on a Dell Latitude 5350 under macOS 15. XeGfx takes a different road (unchanged drm-kmod sources over its own shim) and targets Tahoe as well.

Problems worth knowing about

  • drm-kmod never turns the GuC on in FreeBSD builds, and Meteor Lake and Arrow Lake cannot submit work without it, so XeGfx sets enable_guc=3 by default.
  • OSKextRequestResource does not serve the Resources of a kext that lives in the auxiliary kernel collection, so the GuC firmware is linked into the kext binary. That is also why other generations need their own firmware linked in before they can be tried.
  • XNU devfs clone nodes give every stat and open its own minor number, so libdrm could not match an open file to its /dev/dri node. The patched libdrm matches nodes by slot instead.
  • WindowServer's sandbox refuses /dev/dri, which is why the desktop path goes through IOKit instead.

Built on, and learned from

XeGfx is built on other people's work. Thanks to all of them.

Code XeGfx builds or ships (their licences apply to their files):

Project What we use
freebsd/drm-kmod drm core, TTM, dma-buf and i915 sources, compiled unchanged
FreeBSD LinuxKPI and FreeBSD kernel the Linux kernel API layer, plus subr_eventhandler.c and FreeBSD's headers
Linux i915 and DRM the driver drm-kmod tracks; the sync_file uapi header
linux-firmware Intel's GuC firmware (LICENSE.i915)
nullmoth/nvidia-macos-driver plugin/, kexts/XeGfxAccel, kexts/XeGfxAGDC and kexts/NMIntelFB are forks of it; its old AMD/Intel port (commit bf2dee3) supplies the GPL-free dma-buf, sync_file and fence-unwrap replacements and the Mesa/libdrm Darwin patches used in NvGfx's xe branch
Mesa ANV and libdrm the Vulkan userspace
steelbrain/metal2vulkan the Metal-to-SPIR-V translator in translator/; its coverage table and refusals list, and its Arrow Lake ANV validation profile
watchthelight-labs/kcabi kernel collection link and ABI checks

Projects we studied (ideas, findings and warnings only; no code copied):

Project What we learned
b00t0x/WhateverXe, WhateverXe-Graphics, b00t0x/OpenCore-Legacy-Patcher Xe-LP on Apple's Tiger Lake driver across Big Sur to Tahoe; forcing BAR0 MMIO to strong uncached; stolen-memory decoding; adopting the firmware's pipes without a modeset; since 0.4.0 Tiger Lake laptop panels too, by reading panel facts from the firmware's VBT and keeping the eDP scrambler and framing bits in step with the panel during link training; shipping the graphics stack as a signed /Library package instead of System patches; 0.6.0 (October 2026) adds Alder Lake and Raptor Lake laptops, defers framebuffer opens until AGDC registration, and states Xe-LPG is not planned; Graphics 0.3.0 converts shaders to AIR with the system compiler; 0.8.3 (November 2026) adds brightness over the eDP AUX channel from the panel's DPCD backlight registers, not yet validated on a panel
sgiammori/NootedGreen how far the Apple TGL donor approach reaches on Alder Lake and Raptor Lake
JulioNectar/Hackintosh-XPS13Plus-IrisXe-Tahoe keeping the firmware's eDP mode, the boot-programmable mode trap in WindowServer, the GGTT[0] machine-check hazard, Tahoe IOSurface offsets; holding the boot plane dark until WindowServer owns the display, a scheduler fix for a context-status event that was being dropped, and blit paths that fail on wide or oddly pitched IOSurface planes; later, render-engine workarounds applied after every engine start, power rerouting so hybrid P-cores get correct HWP units, a per-command-buffer leak that grew WindowServer past 10 GB, and eDP backlight over DPCD AUX
m4j2rpf766-crypto/IntelIGPU-Tahoe handing the panel over from IONDRVFramebuffer on Tahoe; isolating the iGPU at boot
VedCloud/Meteor-Lake-Xe-LPG-Metal-Graphics (earlier: VedCloud2/CoreUltraGraphics) the first i915-on-XNU port to drive real Intel hardware: an i915-derived kernel driver on LinuxKPI, Mesa ANV and a NullMoth-derived Metal plugin, with Metal and Vulkan working on a Meteor Lake Dell Latitude 5350 under macOS 15; GuC submission with Linux's own MTL firmware, a GPU-composited desktop, and two lessons for our LinuxKPI: a lost wake-up that looked like GuC timeouts, and starting the stolen-memory allocator after the firmware's console image; on 2026-10-23 they confirmed that ANV's sync_file probe can be passed from userspace with stand-in descriptors, the route XeGfx 0.0.12 takes
kitsuneislife/nmx-intel i915 through NullMoth's port lighting a Raptor Lake laptop panel on macOS, and a framebuffer that copies frames composited on another GPU to the Intel panel; its pitfalls notes taught us to reserve the boot framebuffer's stolen pages and GGTT range before i915 allocates, and to give the framebuffer an IOFBDependentID
IT-EXPRESS-Bayern/LunarBridge-Hackintosh Lunar Lake (Xe2) groundwork on Tahoe
wallali77666-cyber/iris-xe-macos-driver a NullMoth-style stack aimed at Tiger Lake
zep245/IrisXe-macos-driver i915 and Mesa ANV running on Tiger Lake under Sequoia through NullMoth's Intel path; sandboxed apps see no GPU because the sandbox refuses opendir(/dev/dri), and the in-kernel LinuxKPI panics it ran into (thread_call limits, cond_resched inside ggtt_pin, TLB flush timeouts); in 1.0.0 (October 2026) scaled desktops through i915's panel fitter by giving a modeset the panel's timing with a smaller source, the hardware cursor plane, page flips instead of copies, NVRAM breadcrumbs that made each flip take about 700 ms, and the plugin's one-time copy of small no-copy textures that hid typed letters; in 1.0.1 (October 2026) Tahoe icons back on the GPU after finding that buffer textures were refused on ANV's memory types (the same cause as our I-120, found independently), and per-function constant spaces for linked visible functions; in 1.2.5 (November 2026) scaled HiDPI sizes: the framebuffer has to publish IOFBScalerInfo and a timing range and accept programmed timings, the scan-out buffer is larger than the panel and a plane scaler shrinks it, and the modes need the hi-res flag (display overrides alone add no sizes)
CENSEDAXIS20025/ASUS-FX608LP-Hackintosh-Multiboot the same Core Ultra 9 275HX, 7D67 iGPU and RTX 5070 Laptop running macOS on the RTX with the iGPU blocked and the MUX set to discrete only
Mountainatic/ArrowWhatever the same Core Ultra 9 275HX and 7D67 iGPU with an RTX 5080 Laptop on XeGfx 0.0.44, with ten patches of their own: a pin versus last-unwire race in userptr buffers, GGTT zero-copy scanout with a flip deferred until the GPU is idle (about 60 fps at 2560x1600, up from about 15), and the panel timing read from BAR0. Their userptr panic and fix (patch 0001) is the same bug we hit as I-121 and fixed in 0.0.46, found independently. Patch 0009 lets WindowServer submit without waiting and flips only once the engines are idle, which took the desktop to about 60 fps. Patches 0008 and 0009 are ported to the xe-zerocopy-flip branch, adapted to a per-surface wait (built, not booted or released yet). Patches 0010 to 0037 (November 2026) go further: i915 takes over the eDP pipe with a hardware cursor plane and plane-scaler HiDPI sizes, brightness through i915's backlight code, AGDC colour stages that save one full-screen copy per frame, a GPU clock floor on late frames, and a watchdog that names an MMIO read that never returned. Not ported yet
victorwitkamp/NootedGreen (branch raptor-lake-hx) a NootedGreen fork for Raptor Lake-HX that ports i915 forcewake, pipe VDSC and the render engine workarounds; its owner reports Metal on a ROG Strix G814JI
samranahmad09/WhateverXe-RaptorLakeP checking a bring-up by capturing i915's registers on Linux next to a macOS readout, and a blitter ring self-test
lutzbichler/drm-kmod (xe patches) and drm-kmod #316 the state of the xe driver outside Linux
drm-kmod #315, #418, #468 LinuxKPI bugs FreeBSD already fixed for Meteor Lake and Arc, to carry over; #418 is merged, #468 was replaced by a scatterlist fix in freebsd-src and by #534
openbsd/src inteldrm attaching i915 in stages and deferring the heavy probe
samwu07/xegfx-thinkbook14plus-mtl Meteor Lake on 0.0.47: a boot framebuffer that starts below the GuC's GGTT top makes reserve_bootfb refuse it (-28 on a 3072x1920 panel), and moving its GGTT mapping before XeGfx loads gets WindowServer and Metal up; also a zero-copy flip on that machine
jxy333967 The cause of ghosting, clipped window corners and translucent areas drawn transparent: a texture barrier in a pass that samples its own target did not refresh the copy the pass reads from. Patch against 0.0.47 with a small test, in samwu07's issue 2; on our branch xe-barrier-snapshot, not in a release yet
ericek111/vibe-nullmoth-xe3-qemu NullMoth's xe port running Panther Lake (Xe3) as an SR-IOV function in QEMU, and the port bugs it fixed on the way: runtime PM stubs that dropped every GuC reply, kernel maps of non-contiguous buffers, MSI on the function (no licence yet, so notes only)
InSnh-Gd/WTLIntelGfx (PR #1) a plan for a bare-metal Panther Lake xe port on this tree, with a triage of the 115 patches above into bare-metal, VF-only and not needed
lems-hardware/lhl-hackintosh-docs an attempt-by-attempt log of Panther Lake (B082) on a core from this tree's lineage, to GuC running and a user-space submit read back; and the finding that an SRCU treated as plain RCU panics when drm_dev_enter sleeps under it, which we have yet to check in our shim
yangyishuo1124/Mubai-s-Hackintosh-Logs Panther Lake (B0A0) work on a copy of this tree, with a clear list of what is verified and what is not, and an NVRAM step trace for a stage that freezes the machine (GPL-3.0, so notes only)
cuadra8998/MeowXE3 the Linux xe driver on NullMoth's LinuxKPI with a desktop reported on one Wildcat Lake laptop (FD80); on an Arrow Lake-H 7D51 it froze the machine for another user, so xe is not a drop-in there (PolyForm Noncommercial, so notes only)
yusufklncc/intel-gpu-macos-driver the same architecture on an Arc B580; in 0.1.7 (November 2026) an ANV descriptor-buffer bug that drops a layer from app icons, found with a test, a shutdown panic from a DMA mapping kept without a wire, and what skipping the per-frame composite readback gains (notes only until its licence is read)
hepengfei00/XeMac this tree and ArrowWhatever's patches on another 7D67 machine with an external DisplayPort screen, plus nine patches of its own: DisplayPort and AUX mapping, the framebuffer fetch WindowServer does, and the native timing published to AGDC
taqieallah/ThinkPad-E16-ArrowLake-macOS 0.0.47 on a ThinkPad E16 (7D51) with a zero-copy flip, and a CPU that stays near 550 MHz as the open problem there
change-48/XEGFX-MIGRATE a bring-up log on 7D51: when reserve_bootfb fails the accelerator can overwrite the boot framebuffer, plane geometry only latches on a PLANE_SURF write, and where a 24.8 ms frame spends its time
acidanthera/WhateverGreen and OpenCorePkg the Intel framebuffer background every Hackintosh graphics project builds on
lems-hardware/lhl-srcu-patch a sleepable SRCU for a LinuxKPI shim on macOS: two epoch counters, and a reader that checks the epoch again after counting itself in, the detail our own sketch lacked (#11)

Testers (reports from machines other than ours; every result counts, working or not):

Who Machine What they reported
zsct648gn6-dev Lenovo Legion Y9000P 2022, i7-12700H, 46A6 stage 2 probe passes on 0.0.46 (#3)
TrDiTu HP Victus 15, i7-12650H, 46A3 stages 1 to 3 pass; stage 4 panicked in the PCH lookup, fixed in 0.0.47 (#3)
ductruongvu23 Gigabyte Gaming A16, i7-13620H, A7A8 an iGPU in a discrete-mode MUX shows up as class 0380, which the probe missed until 0.0.47
UNDERDOG07 Lenovo Legion Y7000P IRX10, i9-14900HX, A788 device data for the 32 EU Raptor Lake-HX part, class 0380 in discrete mode; stage 2 passes on 0.0.47 in discrete mode, the first check of that fix (#12)
HAOoool Dell G15 5511, i7-11800H, 9A60 Tiger Lake-H device data; discrete mode removes the iGPU from ACPI and PCI; stage 2 passes in hybrid mode on 0.0.46
559911 Mechrevo GM6AR57C, i7-12800HX, 4688 Alder Lake-HX device data, with WhateverXe 0.6.1 for comparison
Mochen-wu ROG Strix G16 G614JVR, i9-14900HX, A788 Raptor Lake-HX device data on Tahoe 26.7.2; stage 2 on 0.0.47 in discrete mode, where memory decoding is off and the probe reads IDs and BARs only
phmthnh Acer Nitro AN515-58, i5-12500H, 46A6 Linux topology, stolen memory and firmware versions
7HE-W0R1D Gigabyte Z890M Aorus Elite, Core Ultra 7 265K, 7D67 stage 2 passes on a desktop with an RTX 4070 SUPER as the primary GPU (#3)
WilliamAlexanda RedmiBook Pro 15 2021, i5-11300H, 9A49 stage 2 passes on 0.0.47, the first Iris Xe run; notes on zep245's Tiger Lake driver and raising DVMT (#3)
17715748568 RedmiBook Pro 15 2021, i5-11300H, 9A49 Tiger Lake device data, and the 60 MB DVMT limit on the WhateverXe route
cxaiverb Intel Arc A770 (56A0) in a Proxmox VM stages 1 and 2 pass; found that stage 3 only scans bus 0 and that debug.xegfx_env replaces the defaults (#3)
saspol Gigabyte Z890 Aorus Elite WiFi7, Core Ultra 7 265K, 7D67 stages 1 to 6 pass with SIP on and an RX 6900 XT driving the displays, the first desktop run (#15)
samwu07 Lenovo ThinkBook 14+ 2024, Core Ultra 7 155H, 7D55 stages 1 to 3 pass, stage 4 refused a boot framebuffer below the GuC top; WindowServer and Metal on 0.0.47 with his framebuffer move; released 0.0.48 runs the move itself: status 1, 0xfe800000 to 0x80000000, stages to 7, desktop up on macOS 15.8.1 (#13, #16)
change-48 HONOR MagicBook Art 14 2025, Core Ultra 7 255H, 7D51 the first Arrow Lake-H desktop, and a 3120-wide panel whose rows are padded past the scanout stride; since then a deferred zero-copy flip on his own stack, with flip slots sized for the panel's real pitch (#14)
lemlnn Framework Laptop 13 Pro, Core Ultra X7 358H, B082 Xe3 device and firmware data; past ExitBootServices with VT-d off and DMAR dropped; stage 2 probe passes on macOS 15.8.3, on 0.0.48 as he recalls (display 30.00, pipe A lit, 2880x1920); his write-up has stages 1 to 6 passing on another fork's Panther Lake xe core, GuC 70.72.1 (#11, docs)
ydd1126 Gigabyte B860M POWER, Core Ultra 5 245K, 7D67 stages 1 to 6 pass on 0.0.47 (macOS 26.7.1) with an RTX 3070 driving both displays: GuC 70.53.0, three engines run and store (report); notes on loading the kext on macOS 26
khucxtriendev ThinkPad P1 Gen 5, i7-12800H, 46A6 Alder Lake-H device data from a machine that runs the panel on WhateverXe
jixx-choi Razer Blade 18 2024, i9-14900HX, A788 with the MUX on discrete the iGPU leaves PCI entirely; in hybrid mode stage 2 passes on 0.0.47 with the panel on the iGPU
cells114514 HP OMEN, i7-14650HX, A78B the same: no iGPU node at all in discrete mode
bafcz Lenovo Legion Y9000P IRX8, A788 Raptor Lake-HX device data
大口吃饭 (Dakou Chifan) Thunderobot Hunter R15 (Clevo), i7-13650HX, A78B device data read from Windows; in discrete mode macOS sees no iGPU node, the first 13650HX report; in hybrid mode his boot hangs at 40 to 50 % with the kext (version and stage not yet known)
1225forKey Redmi Book Pro 14 2024 (TM2307), Core Ultra 5 125H, 7D55 Meteor Lake recovery-image boot on Sequoia 15.6.1: ACPI, PCI, NVMe and APFS come up, then a hang after the panel timing line; the hang stays with the framebuffer and AGDC kexts removed (#18)
sulthonuladib HP Victus 15-fa0xxx, 46A6 Alder Lake-P device data on a laptop with no MUX
nidemimihihi TOPC RPL-HX MATX desktop board (HM770), i7-14650HX, A78B device data and BIOS graphics settings from a mobile-on-desktop board; the 14650HX iGPU is A78B, class 0380; stage 2 passes on 0.0.47 with an AMD card driving the display
pubglite55 ASUS ROG Zephyrus M16 GU603ZM, i7-12700H, 46A6 Alder Lake-P configuration data
sortedcord Motorola moto book 60 pro, Core Ultra 5 225H, 7D51 by his README an accelerated desktop on 0.0.48 with samwu07's Metal stack on Sequoia 15.8.3; the boot framebuffer sits at GGTT 0xFF600000, a fourth address our hardware cursor check refuses (repo)
ChariskRichy Lenovo ThinkBook 16 G7+ IAH, Core Ultra 5 225H, 7D51 accelerated desktop on 0.0.48 (macOS 26.6); ghosting and clipped corners gone with jxy333967's barrier patch; sent the panic and WindowServer crash files, and the result that his panics stopped with LegionCpuPower's HWP control off (#19)
doahkiin Huawei MateBook 14 2024, Core Ultra 7 155H, 7D55 on a fork of main (a848e5a plus his own plugin changes, Sequoia 15.8.1): stage 7 on a 2880x1920 120 Hz OLED with a zero-copy flip; reports torn frames inside Safari video and WindowServer stalls of up to 690 ms, and asked whether CPU to GPU coherency is covered for imported surfaces, which is still open (#29)
iqsanfm Dell Latitude 7430, i7-1265U, 46A8 stage 2 probe passes on 0.0.48 (pipe A lit, 1920x1080), the first 46A8 report (#3)
faiooolpdm Lenovo ThinkPad E14 Gen 7, Core Ultra 5 225U, 7D41 stage 2 probe passes on 0.0.48 on Sequoia 15.8.3 (pipe A lit, 1920x1200), the first Arrow Lake-U and the first 7D41 report (#3)
zdienos ASUS Zenbook 14 UX3405MA, Core Ultra 7 155H, 7D55, as a QEMU/KVM guest with the iGPU passed through stages 1 to 7, Metal and the desktop on 0.0.48 under macOS 15.8.3, and under 13.7.8 with his patches; found that vmap() leaves pages of a multi-range mapping unentered (#26), sent a hardware cursor change (#25) and the list of what Ventura needs (#27); report in #24
journeyaway Arrow Lake-H mini PC, Core Ultra 9 285H, 7D51 stage 4 fails with -71 on 0.0.48 (macOS 26.7.4): the GGC check refuses after forcewake is never acknowledged; cause open (#22)
SorasakiHinaHusband Lenovo ThinkBook 14+ 2025, Core Ultra 5 225H, 7D51 stages 1 to 7 pass on 0.0.48 (macOS 26.7.3); the display takeover then ends without a vblank pipe (iop_vbl_pipe = -1); cause open (#23)

How it stays safe to test

A broken GPU driver can stop a machine before anything reaches the disk, so the kext is built to be harmless until asked:

  • It never loads at boot. Its only IOKit personality waits for a resource the kext publishes itself, after kmutil load -b org.watchthelight.XeGfx. If a test crashes the Mac, it reboots into a system where XeGfx is not loaded.

  • It runs in stages, one sysctl write at a time:

    debug.xegfx_stage What runs
    1 the shim's own state (clock, threads, VM, tunables, task queues)
    2 a read-only look at the GPU: IDs, BAR sizes, GMD_ID, stolen-memory base, pipe A registers, the GGTT entry behind the panel, PCH watchdog registers, published as the XeGfxProbe registry dictionary
    3 newbus over every PCI device, the DMA layer
    4 the drm and i915 init routines, i915 display disabled, then a check that the panel still scans out the same memory and pipe A still counts frames
  • A stage that runs longer than debug.xegfx_wdog seconds panics on purpose, so a stall becomes a panic report and a reboot instead of a frozen screen.

  • debug.xegfx_log returns the last 64 KiB of the driver's own console output, and debug.xegfx_results the result of each stage.

  • debug.xegfx_env sets tunables for the next stage (compat.linuxkpi.i915_enable_guc=3 and the like), so one boot can try several settings.

  • The link fails if the kext redefines any symbol the kernel exports (tools/shadow_check.py). That bug class killed the first two hardware tests.

Building

You need the Xcode Command Line Tools (clang and the macOS SDK; the scripts are tested with SDKROOT set to the 15.5 SDK) and Python 3. Third-party sources are not in the repository:

  • ~/src/xe-src: sparse clones of linux (the Linux kernel), freebsd (LinuxKPI lives in sys/compat/linuxkpi), drm-kmod (commit c16de0f, Linux 6.14 level) and linux-firmware (mtl_guc_70.bin and LICENSE.i915, linked into the kext)
  • ~/src/deps/open-gpu-${NVRM_TAG:-615.78.08}: NVIDIA's open-gpu-kernel-modules, whose headers XeGfxAccel compiles against
  • ~/src/deps/Vulkan-Headers: Khronos Vulkan headers for the plugin
  • rustup stable for the translator, and the Mesa and libdrm trees userland/BUILD.md lists
build/build_xegfx.sh          # XeGfx.kext into out/: objects, licence gate, link, KPI / shadow / kcabi checks
build/build_xegfxaccel.sh     # XeGfxAccel.kext, the Metal accelerator
build/build_xegfxintelfb.sh   # XeGfxIntelFB.kext
build/build_xegfxagdc.sh      # XeGfxAGDC.kext
build/build_nmintelfb.sh      # NMIntelFB.kext, the boot framebuffer on the iGPU
build/build_plugin.sh         # the Metal plugin, NVMTLDriver (RELEASE=1 for a release build)
build/build_xlate.sh          # libnvmtl_translate.dylib, Metal AIR to SPIR-V
userland/scripts/build_*.sh   # libdrm, Mesa ANV and the Vulkan loader
sudo tools/install.sh         # into the auxiliary kernel collection (XEGFX_MODE=uninstall to remove)

Kexts and the plugin land in ~/src/XeGfx-build (OUTROOT, XEGFX_OUT). build/xeaccel-pkg and build/xeintelfb-pkg hold install scripts that swap one kext in the auxiliary collection and keep a backup. tools/kpi_split.py and the link check use WTLKcAbi, expected in ~/src/kcabi.

Layout

Path What it is
shim/src/fbsd The FreeBSD kernel API on XNU: threads, locks, sleep queues, malloc and UMA, VM pages and objects, newbus and PCI, bus_dma, sysctl, taskqueues, callouts, firmware loading
shim/src/xnu The C++ side that talks to IOKit: kext entry and stages, PCI devices, interrupts, DMA, devfs nodes
shim/include XNU overrides of FreeBSD and LinuxKPI headers; xg_bsdnames.h renames FreeBSD functions that share a name with a kernel export
xkpi/ Overlay on drm-kmod: replacements for its GPL-only files, LinuxKPI fixes, and the i915 glue the stages call (xg_i915_*)
harness/score.py Compiles every drm-kmod source for the XNU kernel target; --obj builds the objects and runs the licence gate
kexts/XeGfxAccel The Metal accelerator (IOAccelerator family) WindowServer and Metal talk to, and the copy of finished frames to the panel
kexts/XeGfxIntelFB, kexts/NMIntelFB The framebuffer kexts for the built-in panel on the iGPU
kexts/XeGfxAGDC The AppleGraphicsDeviceControl service IOPresentment needs before WindowServer gives the framebuffer a display pipe
plugin/ The Metal driver bundle: Metal API on Vulkan (ANV)
translator/ The shader translator, Metal AIR to SPIR-V (a metal2vulkan fork)
userland/ Patches and build scripts for libdrm, Mesa ANV and the Vulkan loader on macOS, and small Vulkan and Metal test tools
tools/ link.sh, kpi_check.py (public KPIs only), shadow_check.py, install.sh, igfx/ (panel and EDID checks)
build/ The build scripts above
docs/ One design note per shim area (xg_*.md) and HOW-IT-WORKS.md

Until 2026-10-30 everything outside shim/, harness/, tools/ and docs/ lived in the NvGfx fork (branches xe and xe-2.6.2); its history is there. Fixes to the shared Metal plugin are ported between the two repositories.

Helping

Testers with any Intel Xe machine are the most useful thing right now, and so is anyone who knows XNU, IOKit or i915 internals. See CONTRIBUTING.md and the open issues.

License

Mixed, by folder. The kernel shim, the build scripts and the tools are under the BSD 2-Clause license (LICENSE). The Metal plugin, the accelerator, XeGfxAGDC and NMIntelFB are forks of NullMoth's driver and stay under PolyForm Noncommercial 1.0.0 (licenses/): no commercial use. The translator is LGPL-3.0. NOTICE has the full table.

About

Intel Xe graphics acceleration for macOS and Hackintosh: Metal and Vulkan on Iris Xe, Intel Arc and Core Ultra (Meteor Lake, Arrow Lake) iGPUs. The Linux i915 driver on XNU through FreeBSD drm-kmod, with Mesa ANV. Runs on Arrow Lake under macOS Tahoe 26 and, for a tester, on Meteor Lake under Sequoia. Still a test driver.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

105 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages