x86-64 client: browser in software, games on the GPU

On the GPU the client's browser GPU process needs libgbm, which FEX does
not thunk; the guest GBM cannot export buffers on the Adreno and the GPU
process restarts forever (no first frame). Games keep the thunked GL and
Vulkan. BL_X64_CEF_GPU=1 still tries the GPU browser.
This commit is contained in:
The412Banner committed 2026-10-02 19:05:42 -04:00
1 parent 4374d6c7d7
commit 0b3bc31397
2 files changed
+6 -4

No files matched your search

@@ -259,9 +259,11 @@ case $mode in
step "x86-64 Steam client ready"
steam_root=${BL_X64_HOME:-$HOME/.droiddeck-x64}/.local/share/Steam
steam_client=(bannerlator-steam-x64 --exec)
# On the GPU when FEX has its host thunks (Vulkan/GL to Turnip and Mesa), as the arm64 client
# draws; in software otherwise.
if bannerlator-steam-x64 --gpu; then
# The client's browser stays in software: on the GPU its GPU process needs libgbm, which FEX
# does not thunk, and the guest GBM cannot share buffers with the Adreno (device: GPU process
# restart loop, no first frame). Games still get the GPU through the thunks.
# BL_X64_CEF_GPU=1 tries it anyway.
if [ "${BL_X64_CEF_GPU:-0}" = 1 ] && bannerlator-steam-x64 --gpu; then
steam_cef=(-cef-force-gpu -cef-ozone-platform=x11 -cef-use-gl=angle -cef-use-angle=vulkan)
else
steam_cef=(-cef-disable-gpu)
@@ -444,7 +444,7 @@ for attempt in 1 2 3 4 5; do
echo publicbeta > "$STEAM_X64/package/beta"
step "starting the x86-64 SteamRT3 client under FEX (attempt $attempt): $*"
rc=0
if x64_gpu; then cef=(-cef-force-gpu -cef-ozone-platform=x11 -cef-use-gl=angle -cef-use-angle=vulkan); else cef=(-cef-disable-gpu); fi
if [ "${BL_X64_CEF_GPU:-0}" = 1 ] && x64_gpu; then cef=(-cef-force-gpu -cef-ozone-platform=x11 -cef-use-gl=angle -cef-use-angle=vulkan); else cef=(-cef-disable-gpu); fi
( x64_exec -clientbeta publicbeta -no-cef-sandbox "${cef[@]}" "$@" ) >>"$LOG" 2>&1 || rc=$?
step "client exited rc=$rc"
[ "$rc" = 42 ] || break