Skip to content

asahi: target the A12 GPU (G11) - #44

Merged
henrikklee merged 1 commit into
mainfrom
a12-asahi-g11
Dec 2, 2026
Merged

henrikklee merged 1 commit into
mainfrom
a12-asahi-g11

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

GPU step 5 for the A12: kieroid's badapple port of Mesa's asahi driver to the A12's G11 GPU (author kieroid, [Orchard: from rzxvx/Project-Cascadia@566808a devices/a12/mesa/mesa-0001-asahi-g11.patch (badapple 61bd066f)], no sign-off: for orchard#388). One conflict resolved: our capture heap in agx_open_device() kept, placed after G11's USC heap.

Note: G11 is a build-time switch (AGX_G11 in src/asahi/genxml/agx_g11.h), so this Mesa's asahi drives the A12 only, not M-series GPUs; we don't ship asahi today, so nothing regresses, but M-chip support later would need it chosen at runtime from the kernel's GPU generation. OpenGL ES/GL only (Vulkan not built).

Compiles in CI once OrchardLinux/packages' mesa-asahi PR (asahi in gallium-drivers) is on packages main; not compiled locally (needs Linux DRM headers).

Adapt the asahi compiler, command streams, layout, Gallium driver and
Honeykrisp to Apple's A12 GPU (AGX G11P): the G11 stop instruction,
threadgroup memory through the device load/store encoding, no SIMD
reductions or G13 cache barriers, single-sampled tilebuffers, the G11 CDM
block types and one-word USC shader/register/shared-memory words
(cmdbuf.xml), a USC heap that keeps address 0 free, and the device name
"Apple A12 (G11x)". AGX_G11 (genxml/agx_g11.h) selects G11 at build time.

[Orchard: from rzxvx/Project-Cascadia@566808a
 devices/a12/mesa/mesa-0001-asahi-g11.patch (badapple 61bd066f), applied
 onto our fork's main; the only conflict, agx_open_device()'s USC heap
 hunk, keeps our separate capture heap (b467490) after the G11 USC
 heap; every other hunk applies unchanged.]
Assisted-by: LLM
@henrikklee
henrikklee merged commit 21f87eb into main Dec 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants