From 0b3bc3139793eeae68ac8ddbe564846e179e890c Mon Sep 17 00:00:00 2001 From: The412Banner Date: Fri, 2 Oct 2026 19:03:34 -0400 Subject: [PATCH] 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. --- tools/linuxfs/overlay/usr/local/bin/bannerlator-session | 8 +++++--- tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/linuxfs/overlay/usr/local/bin/bannerlator-session b/tools/linuxfs/overlay/usr/local/bin/bannerlator-session index b9647de29f..1a7ab92789 100755 --- a/tools/linuxfs/overlay/usr/local/bin/bannerlator-session +++ b/tools/linuxfs/overlay/usr/local/bin/bannerlator-session @@ -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) diff --git a/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 b/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 index cbe18583a0..88ea031288 100755 --- a/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 +++ b/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 @@ -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