From 563dff6d7561c3da40a954f5a8e18ac266cc1ee5 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Sun, 25 Oct 2026 23:13:59 +0000 Subject: [PATCH] Pin Gamescope with the Steam client again outside Qualcomm sessions The Qualcomm port stopped pinning Gamescope to the Steam client's cores for every session. Outside Qualcomm sessions Gamescope does not copy frames through X11 SHM, and a user who restricts the client's cores still expects Gamescope on them, as since #152. Only Qualcomm sessions skip it now. --- tools/linuxfs/overlay/usr/local/bin/droiddeck-session | 7 ++++++- tools/qualcomm/README.md | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session index d1f1a674b..6f55312a4 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session @@ -1213,7 +1213,12 @@ BUSCONF for _d in /proc/[0-9]*; do { IFS= read -r -d '' _c && { IFS= read -r -d '' _c1 || _c1=; }; } < "$_d/cmdline" 2>/dev/null || continue case $_c in FEX|*/FEX|FEXInterpreter|*/FEXInterpreter) _c=$_c1 ;; esac - case $_c in *steamwebhelper*|*steamrtarm64/steam|*steamrt64/steam) ;; *) continue ;; esac + case $_c in + *steamwebhelper*|*steamrtarm64/steam|*steamrt64/steam) ;; + # Qualcomm sessions copy every frame through X11 SHM inside Gamescope; the client's cores starve it. + *gamescope*) [ "${DROIDDECK_SYSTEM_QUALCOMM:-0}" != 1 ] || continue ;; + *) continue ;; + esac _t=("$_d"/task/*) _p=${_d#/proc/} [ "${_bl_pinned[$_p]:-}" = "${#_t[@]}" ] && client_single_core_matches "$BL_CLIENT_CPUS" "${_t[@]}" && continue diff --git a/tools/qualcomm/README.md b/tools/qualcomm/README.md index 6a281bd38..afcf84bd6 100644 --- a/tools/qualcomm/README.md +++ b/tools/qualcomm/README.md @@ -24,7 +24,7 @@ On Adreno 740/Qualcomm 0.676.1, session `2026-10-24-13-steam` enabled the regula The GPU path is gated on Zink's OpenGL level. Before Steam starts, `droiddeck-session` reads Zink's maximum core profile version with `glxinfo -B`; below 4.0, or when the version cannot be read, the browser starts with `-cef-disable-gpu` and the log says why, for example `== steam: browser software compositing (Zink offers OpenGL 3.2; GPU compositing needs 4.0)`. Setting `BL_STEAM_CEF_SOFTWARE` to `0` or `1` skips the gate. On the vivo V2243A (Adreno 740, system driver 0.676.1) Zink reaches OpenGL 3.2 and GPU compositing left the library without its background, tabs and parts of covers, with stale regions while moving between items. Software compositing rendered it correctly. Disabling the compat layer's shader rewrites, Zink's render-pass tracking, compact descriptors, threaded GL, Mesa's no-error mode or command reordering, or forcing synchronous Zink flushes, did not change the corruption, and the runtime from before the zero-copy work showed it too. The Adreno 840 with v891.7 reaches OpenGL 4.6 and keeps GPU compositing. -Qualcomm sessions also leave the Steam client CPU affinity unrestricted by default, preserving explicitly saved overrides. The previous SM8550 default pinned Steam, its browser and Gamescope to one core. The affinity loop now applies client masks only to Steam and its browser. A startup recording after that fix showed the complete six-second DroidDeck animation followed by the library; a brief initial white window remained before playback. +Qualcomm sessions also leave the Steam client CPU affinity unrestricted by default, preserving explicitly saved overrides. The previous SM8550 default pinned Steam, its browser and Gamescope to one core. In Qualcomm sessions the affinity loop applies client masks only to Steam and its browser; other sessions still pin Gamescope with them. A startup recording after that fix showed the complete six-second DroidDeck animation followed by the library; a brief initial white window remained before playback. ### Pixmap binding without DRI3