diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session index 51a932541..e977578c1 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-session +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-session @@ -302,6 +302,14 @@ if [ "${DROIDDECK_SYSTEM_QUALCOMM:-0}" = 1 ]; then echo "== qualcomm: ${bl_caps:-zero-copy off: the capability probe gave no answer}" export DROIDDECK_QUALCOMM_ZERO_COPY unset bl_caps + if [ "${DROIDDECK_WSI_BYPASS_CHECK_MS:-0}" != 0 ]; then + if [ "$DROIDDECK_QUALCOMM_ZERO_COPY" = 1 ]; then + echo "== qualcomm: performance mode: games present through Gamescope's WSI layer, so it applies as in other sessions" + else + echo "== qualcomm: performance mode: only the unpaced release (no frame limit) and Wine's window-check cache;" \ + "games present through X11 SHM, so Gamescope's WSI parts (more swapchain images, present-check cache) do not apply" + fi + fi fi # Chromium's GPU compositor corrupts the Steam UI on Qualcomm drivers where Zink stops below OpenGL 4.0. # An explicit BL_STEAM_CEF_SOFTWARE decides instead. diff --git a/tools/qualcomm/README.md b/tools/qualcomm/README.md index 97abd5ada..f44d60de8 100644 --- a/tools/qualcomm/README.md +++ b/tools/qualcomm/README.md @@ -90,7 +90,7 @@ Proton games in Qualcomm sessions present through Gamescope's WSI layer instead - A device with those extensions, `VK_KHR_swapchain` and `VK_EXT_swapchain_maintenance1` with its feature (which Gamescope's WSI layer forces on) is created through the session's layers, and a LINEAR image's dedicated memory is exported with `vkGetMemoryFdKHR`. The WSI layer implements the swapchain extensions without listing them, so only device creation confirms them. - Gamescope's Wayland display offers `zwp_linux_dmabuf_v1`. -Any failure, timeout or crash leaves games on SHM. The session log records the result, for example `== qualcomm: zero-copy off: missing VK_EXT_external_memory_dma_buf; Gamescope offers no linux-dmabuf (Adreno (TM) 740, driver 0.676.1)`. +Any failure, timeout or crash leaves games on SHM. With Performance mode on, the session log also says which of its parts reach games: on SHM only the unpaced release and Wine's window-check cache apply, because Gamescope's WSI layer is not used. The session log records the result, for example `== qualcomm: zero-copy off: missing VK_EXT_external_memory_dma_buf; Gamescope offers no linux-dmabuf (Adreno (TM) 740, driver 0.676.1)`. The Qualcomm HAL used for development has DMA-BUF export but no `VK_EXT_image_drm_format_modifier`, and Android has no DRM device. The WSI layer is therefore rebuilt with its Wayland backend and `wsi-patches`: