Skip to content

Login session: no direct scan-out on simpledrm with the GPU desktop - #98

Merged
henrikklee merged 3 commits into
OrchardLinux:mainfrom
brkosebay:gpu-no-direct-scanout
Nov 22, 2026
Merged

henrikklee merged 3 commits into
OrchardLinux:mainfrom
brkosebay:gpu-no-direct-scanout

Conversation

@brkosebay

@brkosebay brkosebay commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

On the GPU desktop, Labwc renders on the GPU (which has no display outputs) and shows the result on the display's own card. When that card is simpledrm, wlroots still tried to scan out a fullscreen client's GPU buffer directly on it: AddFB2 failed with EINVAL, the buffer was poisoned, and on the iPod touch 6 the shell drawn on the GPU never appeared. The software shell was fine because shm buffers never take that path.

The session now adds WLR_SCENE_DISABLE_DIRECT_SCANOUT=1 to the GPU desktop's environment only when the display card's driver is simpledrm, which takes no dma-buf. A display driver that imports the GPU's buffers keeps direct scan-out. Boards without a GPU, and the software desktop, are unchanged.

Tested on an iPod touch 6:

  • on simpledrm, the shell shows, drawn by Qt Quick on the GPU;
  • with the A8 display pipe driver (scan-out through the display DART), direct scan-out stays on, labwc's GPU buffers are imported by the display card, and the shell, bar, apps and control center show.

🤖 Generated with Claude Code

The GPU has no display outputs, so Labwc renders on the GPU and shows its
output on the display's card (simpledrm). wlroots still tried to scan out a
fullscreen client's GPU buffer directly on that card: AddFB2 failed, the
buffer was poisoned, and on the iPod touch 6 the GPU-drawn shell then never
appeared. With WLR_SCENE_DISABLE_DIRECT_SCANOUT=1 whenever the display is a
separate card, Labwc always composites and the shell shows on the GPU.

Tested on an iPod touch 6: shell visible, drawn by Qt Quick on the GPU.

Assisted-by: LLM
A display driver that imports the GPU's buffers (on the iPod touch 6, the
A8's display pipe scanning out through its display DART) can scan out a
client directly, so keep wlroots' direct scan-out there. It stays off when
the display card is simpledrm, which takes no dma-buf.

Tested on an iPod touch 6 with the A8 display pipe driver: labwc's GPU
buffers are imported by the display card and scanned out, and the shell
shows.

Assisted-by: LLM
@brkosebay brkosebay changed the title Login session: no direct scan-out on the GPU desktop Login session: no direct scan-out on simpledrm with the GPU desktop Nov 22, 2026
@henrikklee
henrikklee merged commit 380b103 into OrchardLinux:main Nov 22, 2026
9 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.

2 participants