Commit Graph
20 Commits
Author SHA1 Message Date
The412Banner 5fa2fc44e7 Pin the rebuilt libhybris bridge with the Android 14 dispatch fix
hybris-runtime-4ed93fb9-dd06dd70c6-qa (DroidDeck-Components run 40252158527):
wallentx's builder at 4ed93fb9 plus hybris-patches/0012. Tested alone on the
Pocket FIT (Android 14, Adreno 750, Qualcomm 0.762.24) through PRoot with the
session's binds: the GPU fill/copy/readback probe now passes where the
previous bridge failed vkCreateInstance with -9. That driver offers no
VK_EXT_external_memory_dma_buf, so games stay on X11 SHM there.
2026-10-26 01:06:27 +00:00
The412Banner 06dd70c67e Accept Android loaders that wrap vkGetPhysicalDeviceProperties in the bridge
On the Pocket FIT (Android 14, Adreno 750, Qualcomm 0.762.24) every Qualcomm
session failed before Steam: the bridge compares one core query between
Android's libvulkan instance and its own HAL, and Android 14's loader wraps
vkGetPhysicalDeviceProperties, so the check rejected the instance
(VK_ERROR_INCOMPATIBLE_DRIVER) although vkGetPhysicalDeviceFeatures resolved
to the same vulkan.adreno.so entry from both sides.

0012-android-loader-wrapped-queries.patch (for taowen/libhybris bc8cb358 with
wallentx's patches 0001-0011) accepts the instance when any of five core
physical-device queries resolves to the HAL's own entry. The bridge is
rebuilt with it on DroidDeck-Components.
2026-10-26 01:01:03 +00:00
The412Banner 409c871a03 Pin the Qualcomm runtime r3 build and its mirrored downloads
qualcomm-runtime-r3-4b8c7f84-qa (DroidDeck-Components run 40244231868) was
built from this branch's patch series: only the Gamescope binary and its
source archive changed; Zink and the WSI layer rebuilt byte-identical to r2.
The libhybris bridge and WSI archives now come from that release, mirrored
unchanged from wallentx/DroidDeck (same SHA-256 and size; the original URLs
stay in mirrored_from).

runtime.json now records the patch series the Gamescope was built from, and
a test fails when a Gamescope patch changes without a rebuild, so the
Qualcomm Gamescope cannot silently fall behind the regular one.
2026-10-25 23:26:12 +00:00
The412Banner 4b8c7f8415 Say in the session log which Performance mode parts reach Qualcomm games
On the X11 SHM path Gamescope's WSI layer is disabled, so its two
Performance mode parts (more swapchain images, the present-check cache)
cannot apply; the unpaced release and Wine's window-check cache still do.
With zero-copy every part applies. The log now says which case a session is in.
2026-10-25 23:17:57 +00:00
The412Banner dfce775514 Save the Qualcomm capability checks between sessions
Every Qualcomm session started the driver through libhybris twice before
Steam: droiddeck-qualcomm-caps (up to 20 s) and glxinfo for the browser's
OpenGL level (up to 15 s). Both answers only change with the driver, so
they are now saved under $XDG_CACHE_HOME/droiddeck and reused while the
driver file (SHA-256), the selected driver, the bridge build, the layers
and the check script are unchanged. Gamescope's linux-dmabuf global is
still checked every session, failed or empty results are never saved, and
the log marks a reused result.
2026-10-25 23:17:41 +00:00
The412Banner 563dff6d75 Pin Gamescope with the Steam client again outside Qualcomm sessions
The Qualcomm port stopped pinning Gamescope to the Steam client's cores for
every session. Outside Qualcomm sessions Gamescope does not copy frames
through X11 SHM, and a user who restricts the client's cores still expects
Gamescope on them, as since #152. Only Qualcomm sessions skip it now.
2026-10-25 23:14:04 +00:00
The412Banner 18735361d7 Keep the Qualcomm-only gamescope patches out of the regular gamescope
0120 (nested swapchain capability fallback) and 0124 (SDL explicit refresh)
only matter for gamescope's SDL backend, which only Qualcomm sessions use.
In tools/gamescope/patches they would go into the next regular gamescope
release for every user. They now live in tools/qualcomm/gamescope-patches;
build_gamescope.py reads both folders in name order, so the Qualcomm build
applies the same series as before.

0121 and 0123 only change anything on PowerVR (vendor 0x1010) and are dropped.
0122 is renamed 0122-dmabuf-import-memory-type: it keeps the part every
vendor uses (the imported DMA-BUF's memory type must also be allowed by
vkGetMemoryFdPropertiesKHR) and drops the PowerVR-only query retry.

The full series still applies to gamescope 8f212644 (3.16.29).
2026-10-25 23:13:44 +00:00
maxjivi05 b0b2daa993 Give the glibc shader layer a minimum SDK so NDK 30 headers accept it
(cherry picked from commit 41843dedcb)
2026-10-25 23:09:14 +00:00
maxjivi05 8c5042f035 Download the pinned Qualcomm Gamescope, Zink and WSI builds when they are missing
The builds come from the DroidDeck-Components qualcomm-runtime release, built on ARM64 CI from this branch, so CI and fresh checkouts can stage the Qualcomm runtime without building it locally. The pins now match those Linux builds.

(cherry picked from commit 2ed529842d)
2026-10-25 23:09:14 +00:00
maxjivi05 479490553f Drop the Qualcomm copy of the cursor SHM patch that main already applies
(cherry picked from commit eb83fcb3e3)
2026-10-25 23:09:14 +00:00
K11MCH1 fb1b413fdd Credit wallentx and JeezDisReez in the Qualcomm backend notes
wallentx's libhybris runtime builder and patches, prebuilt bridge and WSI
releases, system-driver staging, android_wlegl buffer receiver and
Gamescope integration patches are what this backend is built on.
JeezDisReez identified turning off the image-bounds rewrite on Adreno as
the fix for the red graphics in DRAGON BALL: Sparking! ZERO.

(cherry picked from commit 09eb999a3a)
2026-10-25 23:09:14 +00:00
K11MCH1 9c987fa92e Fall back automatically on Qualcomm drivers with fewer capabilities
Older Adreno drivers such as the 8 Gen 2's 0.676.1 lack
VK_EXT_external_memory_dma_buf, DRM modifiers and calibrated timestamps.
They failed device creation in the WSI layer, failed Proton games on the
zero-copy path, and corrupted the Steam UI under GPU compositing.

- WSI patch 0005 makes the Wayland platform optional per device, so a
  device without its extensions stays usable for X11 swapchains instead
  of failing vkCreateDevice.
- droiddeck-qualcomm-caps checks DMA-BUF export and import, the swapchain
  extensions and Gamescope's linux-dmabuf once per session; Proton games
  use the zero-copy WSI path only when it passes and stay on X11 SHM
  otherwise. The session log records the verdict.
- The Steam browser uses software compositing when Zink offers less than
  OpenGL 4.0, with BL_STEAM_CEF_SOFTWARE as the manual override.

Verified on the Adreno 740 (falls back to SHM and software compositing,
UI correct) and the Adreno 840 (zero-copy and GPU compositing unchanged).

(cherry picked from commit d8d0b10cced1f21a1e9bc7dca00efd89b389adb3)
(cherry picked from commit 00775f0511)
2026-10-25 23:09:14 +00:00
K11MCH1 8abb0b8e8c Turn off the compat layer's image-bounds rewrite in Qualcomm sessions
VK_LAYER_HYBRIS_compat enables a Mali+DXVK workaround by default that
replaces the zero operand of the next OpSelect after any image sample or
fetch. On Adreno it collapses DXVK's comparison selects to constants,
which turned Sparking Zero's main-menu scene red.

(cherry picked from commit 8962b4f6f8c6d46178596dcfb02f98543135744d)
(cherry picked from commit d9c84afa8b)
2026-10-25 23:09:14 +00:00
K11MCH1 3158933489 Present Qualcomm Proton games through Gamescope's zero-copy WSI path
Games in Qualcomm sessions now hand Gamescope LINEAR DMA-BUFs exported by
the driver instead of copying frames through X11 SHM. The ARM WSI layer is
rebuilt with its Wayland backend and the private Gamescope gains a
linux-dmabuf global without a DRM device. BL_QUALCOMM_SHM=1 keeps the
shared-memory path; Turnip sessions are unchanged.

(cherry picked from commit 1bd4c04f193f48bdaf4d4aad374010abaf48765d)
(cherry picked from commit d24b824f25)
2026-10-25 23:09:14 +00:00
K11MCH1 0a29d4a054 Select automatic Zink descriptors for Qualcomm Steam browser
(cherry picked from commit cbe67da812e75ab3bcc1a684d258559971591038)
(cherry picked from commit a82a954c88)
2026-10-25 23:09:02 +00:00
K11MCH1 2dd426a803 Fix accelerated Qualcomm browser pixmaps without X11 DRI3
(cherry picked from commit b2b033d675a04d201eb07672b57a93ec1983d86f)
(cherry picked from commit 5764373060)
2026-10-25 23:09:02 +00:00
K11MCH1 85a059e76f Enable experimental Steam browser GPU path for Qualcomm drivers
(cherry picked from commit 7ecf2affb647b36d237600b037ba504f4119a313)
(cherry picked from commit 0de60b7ce9)
2026-10-25 23:09:02 +00:00
K11MCH1 472ed4096d Document Qualcomm driver integration and device validation
(cherry picked from commit c32dfb6aee136074b63b1c5083996287b3182299)
(cherry picked from commit 0d4cafb23e)
2026-10-25 23:09:02 +00:00
K11MCH1 cf0ba191da Support older Qualcomm drivers without DMA-BUF or maintenance5
(cherry picked from commit 10939e6bc31e50dcf18ce0fcad4b48d5874b4af6)
(cherry picked from commit 7873adcb23)
2026-10-25 23:09:02 +00:00
K11MCH1 6339d00a7a Stage pinned Qualcomm bridge and constant-index shader compatibility
(cherry picked from commit 03ca7778eff0a1216a57c7e7933297c49ea14532)
(cherry picked from commit ca9f416118)
2026-10-25 23:08:48 +00:00