Repository navigation
asahi: target the A12 GPU (G11) - #44
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).