The ESP's grub.cfg is the only file this boot path reads (not /etc/default/grub; grub-mkconfig writes nothing that gets used), its kernel lines are indented inside 'steamenv_boot', and a sed anchored on ^linux silently matches nothing. Spell out the copy-pasteable command, the verification, and the /proc/cmdline-after-reboot check.
4.1 KiB
Running under SteamOS game mode (Steam library shortcut)
Game mode on SteamOS composites everything through its own gamescope session, and Steam wraps the processes it launches in a Vulkan/overlay environment meant for Proton titles. VIctory brings its own driver path, so that environment has to be cleaned out or the swap chain is never created: the window stays black while audio plays, and the log repeats
err: DXGI: CreateSwapChainForHwnd: Failed to create swap chain, hr -2147024809
WARN victory_gpu::host: no swap chain error=Invalid parameter. (0x80070057)
Measured on a ROG Ally X (Z1 Extreme, 24 GB, SteamOS, 1280x720 / series-s).
Display
Game mode runs two Xwaylands: :0 hosts the Steam UI, :1 is where games live.
Do not pin DISPLAY in a launcher wrapper — inherit whatever Steam passes its
game processes, otherwise the window is drawn on the UI's display where the
compositor never looks (same black-screen symptom, no swap chain errors).
The game-mode gamescope session is fixed at 1280x800, so ask the title for the
smallest of its modes that fits: VICTORY_OUTPUT=1280x720 (accepted values are
only 1280x720, 1664x936, 1920x1080, 2560x1440, 3840x2160).
Environment
Steam injects four things that break the swap chain on this driver path. A launcher wrapper must neutralise all of them before the title starts:
| Variable | Set by Steam to | What the wrapper does |
|---|---|---|
ENABLE_GAMESCOPE_WSI |
1 |
export ENABLE_GAMESCOPE_WSI=0 |
GAMESCOPE_WAYLAND_DISPLAY |
gamescope-0 |
unset GAMESCOPE_WAYLAND_DISPLAY |
ENABLE_VK_LAYER_VALVE_steam_fossilize_1, ..._steam_overlay_1 |
1 |
set both to 0 |
LD_PRELOAD |
gameoverlayrenderer.so |
export LD_PRELOAD= |
Also clear VK_INSTANCE_LAYERS and keep the implicit gamescope WSI layer out:
export VK_INSTANCE_LAYERS=
export VK_LOADER_LAYERS_DISABLE=~implicit~VK_LAYER_FROG_gamescope_wsi_x86_64
With all of the above the swap chain builds on the first attempt through plain
XCB on :1.
Example wrapper
Point the Steam shortcut's target at a script like this (a non-Steam shortcut:
target = the script, start directory = the rig directory). The profile knobs go as
script arguments — run.conf/menu.conf re-export their own values and
override inherited environment variables, arguments are applied last:
#!/usr/bin/env bash
set -u
cd /path/to/VIctory-xmem
export ENABLE_GAMESCOPE_WSI=0
export ENABLE_VK_LAYER_VALVE_steam_fossilize_1=0
export ENABLE_VK_LAYER_VALVE_steam_overlay_1=0
export AMD_VK_USE_PIPELINE_CACHE=0
unset GAMESCOPE_WAYLAND_DISPLAY
export LD_PRELOAD=
export VK_INSTANCE_LAYERS=
export VK_LOADER_LAYERS_DISABLE=~implicit~VK_LAYER_FROG_gamescope_wsi_x86_64
exec ./run.sh play CONSOLE=series-s KEEP_FREE=6144 VICTORY_OUTPUT=1280x720 DXVK_FRAME_RATE=40
Kernel memory
The GTT requirement from the README applies in game mode as well: the title uses
more GPU-accessible memory than many APUs are given by default (about 9 GB seen
in-world). A stock 8 GiB GTT fails within the first frames with
amdgpu ... Not enough memory for command submission. Raise it on the kernel
command line, e.g. amdgpu.gttsize=16384 ttm.pages_limit=4194304, and verify with
cat /sys/class/drm/card0/device/mem_info_gtt_total.
On SteamOS the live boot configuration is the ESP's /efi/EFI/steamos/grub.cfg
(root-owned; the kernel lines are indented steamenv_boot linux …). /etc/default/grub
is not read by this boot path and grub-mkconfig writes nothing that gets used, so edit the
ESP file directly, keeping a backup:
sudo cp /efi/EFI/steamos/grub.cfg /efi/EFI/steamos/grub.cfg.bak
sudo sed -i 's/^\([[:space:]]*steamenv_boot[[:space:]]\+linux.*\)$/\1 amdgpu.gttsize=16384 ttm.pages_limit=4194304/' \
/efi/EFI/steamos/grub.cfg
sudo grep -n gttsize /efi/EFI/steamos/grub.cfg # one hit per boot entry, or the sed matched nothing
The indentation matters: a pattern anchored on ^linux matches zero lines and reports success.
After the reboot check /proc/cmdline (not the file) for the arguments — Valve regenerates the
file on system updates, so re-apply after one.