verify: present through X images when --adapter is not Xwayland's GPU #221
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!221
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-221"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@NickStallman on GitHub · 2026-11-26 10:42 UTC · original
NickStallman:fix/guest-present-local→main· +130 −33 · 4 files · 1 commits · merged 2026-11-26 11:19 UTCOn a dual-GPU desktop with an NVIDIA primary,
check --adapter <AMD iGPU>failed all fiveguest-present*gates.Cause: the private rootful Xwayland renders on the compositor's GPU, here the 5090. RADV can't create an X11 swapchain on it:
vkCreateSwapchainKHRreturnsVK_ERROR_INITIALIZATION_FAILED. PresentX still returned S_OK, so the gates sampled an unpainted window (0xf5f5f5).Change:
private_x_servernow reads which GPU Xwayland opened.--adapternames a different, non-NVIDIA GPU, it restarts Xwayland with-glamor offand gives the guestMESA_VK_WSI_DEBUG=sw, so Mesa presents through plain X images. The evidence record says so.--adapterstart Xwayland exactly as before.frame_present.cpp: pump the message queue once after PresentX, soguest-present-4k-oversizedmeasures the window after the provider's asynchronous resize. Without this it failed 2 of 4 runs once frames were visible.This only affects the test harness, not games.
Tested with GE-Proton11-14, Linux 7.0.0, KDE Wayland:
python tuxbox.py check --adapter 1002:13c0runs in a row, all passed. Before this change, all fiveguest-present*gates failed.check, all 100 gates passed.python -m unittest discover -s tests: passes, including a new test of when the fallback applies.Relates to the dual-GPU reports in #180.
🤖 Generated with Claude Code