Files
DroidDeck/tools/linuxfs/overlay/usr/local/bin/droiddeck-steam-taskset
T
K11MCH1 a82a954c88 Select automatic Zink descriptors for Qualcomm Steam browser
(cherry picked from commit cbe67da812e75ab3bcc1a684d258559971591038)
2026-10-25 02:11:19 +09:00

19 lines
698 B
Bash
Executable File

#!/bin/bash
set -u
if [ "$#" -ge 2 ] && [[ "$1" =~ ^(0[xX])?[0-9a-fA-F]+$ ]] &&
[ -n "${BL_STEAM_WEBHELPER:-}" ] && [ "$2" -ef "$BL_STEAM_WEBHELPER" ]; then
mask=$1
shift
/usr/bin/taskset -p "$mask" "$$" >/dev/null 2>&1 || true
if [ "${DROIDDECK_SYSTEM_QUALCOMM:-0}" = 1 ]; then
# SDL's accelerated window-surface setup stalls on this X11 SHM presentation path.
export SDL_FRAMEBUFFER_ACCELERATION=0
# Valve's helper disables Kopper; Zink needs it to reach the managed X11 WSI layer.
unset LIBGL_KOPPER_DISABLE
# Forced lazy descriptors corrupt CEF render targets on Qualcomm v891.7.
export ZINK_DESCRIPTORS=auto
fi
exec -- "$@"
fi
exec /usr/bin/taskset "$@"