Skip to content

asahi: bring the A12 (G11) support up to badapple 74ef26a - #45

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

henrikklee merged 1 commit into
mainfrom
a12-asahi-badapple

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

Part of the badapple import (https://forgejo.toe.quest/kiki/badapple): the delta from the old badapple patch (61bd066f, via Cascadia) to current badapple 74ef26a, applied with no conflicts: shader compiler fixes from the dEQP-GLES3 run (badapple: 44523 pass on the XS Max), GL fixes incl. in-place tilebuffer copies, Vulkan (Honeykrisp) MSAA, binds split at the A12 kernel's 256 limit, the A12 GPU heap budget. Author kieroid ([Orchard: from kiki/badapple@74ef26a …], no sign-off: for orchard#388).

Order: after the packages PR (asahi Vulkan in the PKGBUILD), and together with the linux badapple GPU refresh it assumes. Not compiled locally (Linux DRM headers); CI compiles once packages main has asahi.

The A12 port came from an older badapple snapshot (61bd066f, through
Project Cascadia). badapple has since made G11 pass dEQP-GLES3 (44523
tests) and run Vulkan through Honeykrisp (vkcube, multisampling) on the
iPhone XS Max. Take the difference between the two versions of its patch:

- compiler: G11 sample results stay in r0-r31 under early kill, LOD
  queries honour sampler clamps and the mip filter, gathers and min-LOD
  clamps without hardware support, coherent memory through atomics, no
  fp16 denormal modes, coherent loads skip the zero page;
- GL: drops draws past 16 texture states, compressed mip copies, the
  tilebuffer copy in place after clears;
- Vulkan: multisampling, sparse residency refused, big binds split into
  at most 256 operations a call (the A12 kernel's limit);
- device: G11 heap budget.

[Orchard: from kiki/badapple@74ef26a patches/mesa-0001-asahi-g11.patch;
 applied as the difference to the 61bd066f patch (via
 rzxvx/Project-Cascadia@566808a devices/a12/mesa/mesa-0001-asahi-g11.patch,
 both on Mesa 24a0a3b) onto our main; all 24 files applied without
 conflicts, our capture heap kept.]
Assisted-by: LLM
@henrikklee
henrikklee merged commit f61699f 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