sf-compositor: the protocols gamescope needs, so Steam can start

gamescope (which hosts the Steam client) refuses to run nested without
wp_presentation, zwp_relative_pointer_manager_v1 and
zwp_pointer_constraints_v1 ("Couldn't create Wayland objects"), so Steam
quit right away.

- presentation-time with real feedback: on DRM with the page flip's
  kernel timestamp and sequence, on winit when the frame is submitted;
- relative pointer and pointer constraints (the seat gets a wl_pointer;
  no pointer device is attached, the cursor theme is blank).

Tested in the install VM: gamescope now gets past the Wayland setup; it
stops later only because the VM has no hardware Vulkan (llvmpipe lacks
VK_EXT_physical_device_drm). YouTube (Chromium, which uses presentation
feedback too) still renders and takes input.

Shell 0.3.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-10-25 20:20:31 +01:00
parent 62c3056f52
commit 54cdaf5e35
6 changed files with 119 additions and 30 deletions

View File

@@ -140,5 +140,8 @@ A Steam store app: [`fennec/steam`](https://gitea.bluefox.support/fennec/steam),
Az OS adja a rendszerszintű részt (az image-ben):
- a `gamescope`-ot;
- a 32 bites könyvtárakat (`steam-libs-i386`) a Valve aláírt apt-repójából (`mkosi.postinst.chroot`, a kulcs: `image/mkosi.extra/usr/share/keyrings/valve-archive-keyring.gpg`);
- a kontrollerek udev-szabályait a Valve `steam-launcher` csomagjából (csak a szabályokat, a launchert nem).
- a kontrollerek udev-szabályait a Valve `steam-launcher` csomagjából (csak a szabályokat, a launchert nem);
- a kompozitorban azokat a Wayland-protokollokat, amelyek nélkül a beágyazott `gamescope` el sem indul: `wp_presentation` (valódi képkocka-visszajelzéssel), `zwp_relative_pointer_manager_v1`, `zwp_pointer_constraints_v1` (és a meglévő dmabuf, viewporter).
A `gamescope`-nak hardveres Vulkan is kell (`VK_EXT_physical_device_drm`). A QEMU-s teszt-VM-ben csak szoftveres Vulkan (llvmpipe) van, ott a `gamescope` emiatt áll le; a Steam teljes útját valódi gépen kell kipróbálni.