Skip to content

Desktop: draw on the A12's GPU (iPhone XR) - #256

Merged
henrikklee merged 1 commit into
mainfrom
a12-gpu-desktop
Dec 2, 2026
Merged

henrikklee merged 1 commit into
mainfrom
a12-gpu-desktop

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

The iPhone XR's desktop runs on the GPU. So far the login session took the GPU desktop only for the PowerVR boards (A9, A10), through Zink. For the A12's GPU (kernel driver agx) it now:

  • takes its render node and checks its Vulkan manifest (asahi_icd.json);
  • runs the desktop without Zink or the PowerVR driver's switches, because Mesa's own asahi driver draws OpenGL;
  • keys the probe cache on the manifest of the GPU in use;
  • keeps everything else as before: the GPU probe has to pass, simpledrm gets no direct scan-out, and Qt Quick draws on the GPU.

Needs OrchardLinux/packages#31: the probe passed only Zink, so it refused the A12's driver.

Tested on the XR: Omarchy A main with Mesa main (asahi), the GPU module with linux#115, and m1n1 2a5fe33e. labwc ran on gles2 for 15+ minutes with YouTube playing, no GPU error. A unit test covers the A12 case; the whole suite passes locally (486 tests).

The login session took the GPU desktop only for powervr, through Zink.
The A12's GPU (kernel driver agx) has Mesa's own OpenGL and Vulkan
drivers (asahi, Honeykrisp): take its render node too, check its Vulkan
manifest, and run without Zink and the PowerVR driver's switches. The
probe cache keys on the manifest of the GPU in use.

Assisted-by: LLM
Signed-off-by: Henrik Klee <henrik@goat-code.com>
@henrikklee
henrikklee merged commit 764b286 into main Dec 2, 2026
11 checks 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.

1 participant