Steam in offline mode only knows the games in its cached appinfo. A game
bought after its last online session and installed by DroidDeck's own
downloader fails at once with AppError_9 (missing configuration). Before
handing such a game to Steam, check the client's appinfo cache and say to
go online in Steam once.
Prepare the rootfs before a native program starts outside a session
The linker and libc are patched for Android's seccomp filter only when a
session starts. A helper started between sessions, after a runtime
update and before the first session, ran the unpatched linker and died
of SIGSYS (exit code 159). The shared native process builder now
prepares the rootfs itself when no session is running.
* fix(mali): Auto respects Venus turned off and picks the bridge on Mali-G2-Ultra
With GPU drivers on Auto, Mali (Venus) was turned back on after the user turned it off. Auto now respects that choice, and picks the bridge on Mali-G2-Ultra, where Steam's web helper dies on its first window through Venus (#2879). When Auto itself turns Venus off it clears the stored key, so its own decision does not read as the user's later.
* fix(mali): clear Auto-owned Venus preference when fallback ends
---------
Co-authored-by: Unixcision <14082251+Unixcision@users.noreply.github.com>
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* Release zero-copy display buffers at latch; gamescope waits for scanout before reusing an image
* Test that zero-copy releases follow the kernel's fence attach, not the buffer kind
* Pin the gamescope build that waits for scanout before reusing an image
* Probe the fallback output image for scanout so the composite waits on it too
* Pin the gamescope build that probes the fallback output image
## Problem
Zero-copy layer transitions could leave the compositor in an
inconsistent state when allocating an `ASurfaceTransaction` completion
callback failed.
Some failure paths released the current or previous `ASurfaceControl`
even though the transaction had not been applied. This could invalidate
layer state or release resources before the transition completed.
## Fix
- Cancel and delete transactions when completion callback allocation
fails.
- Preserve the current layer and buffer state instead of releasing
resources prematurely.
- Roll back surface swaps when presentation cannot proceed.
- Return an error from failed presentation paths and leave the layer
available for recovery.
- Apply the same failure handling to presentation, layer hiding and
surface retirement.
## Tests
- `git diff --check`: passed.
- Native build: not run locally.
- Device testing:
> Tested on one device and helped with his problem, test build is up for
further testing.
## Changes
- Add vertical page scrolling using the controller's right stick.
> Reuse existing right stick axis detection for better controller
compatibility.
> Convert stick movement into scroll events for Compose scrollable
components.
> Add a dead zone threshold and rate limiting to prevent unintended
scrolling.
## Compatibility
- Supports controllers with different right stick axis layouts.
- Scroll behavior depends on the page's handling of scroll events.
Suggest by _corcse on discord
UwU
- **Perf:** Optimize DD FrameGen flow image initialization and shader
sampling.
> FrameGen should start faster and be more reliable.
- **Perf:** Skip unused FLOWREG image initialization and remove
redundant final FLOWREG barrier.
- **Perf:** Use initialization barriers for fresh framegen images.
> Helps with reliability and performance.
- **Perf:** Reserve capacity for image initialization barriers and Use
fixed storage for image initialization barriers.
- **Perf:** Batch FrameGen image descriptor updates and some FrameGen
image barriers.
> Less calls to the vulkan API.
- **Perf:** Skip unused global motion reduction sums.
- **Docs:** Add OF3_FLOWREG shader documents and some comments.
> This should be helpful when making future changes in the shader, only
for testing and development.
## Fixes
- Fix: Derive OF3 Flow Length from Array Size.
> Should make future changes easier.
- Fix: DD FrameGen scratch resource leak on resize.
- Fix: Present semaphore synchronization to prevent device loss on some
devices.
> Reported by a user, DDFG never worked on his device, this didn't
actually helped him, but im keeping because it can be useful for other
devices.
> issue reported on discord [Link to bug
report](https://discord.com/channels/1552707793247539220/1575946870151446589)
> This file contains the investigation made, in Portuguese:

## Performance
**OLD DroidDeck FrameGen**
| FPS (reported) | 1% low | Frametime | Game | DDFG | Device | DD
version |
|:--:|:--:|:--:|:--|:--:|:--|:--|
| 39.9 → 118.8 | 16.1 | 25.1 ms | Mass Effect | 3× | RP Nova, 12 GB,
Snapdragon 8 Gen 2 | 0.7.11 Stable |
| 32.5 → 91.4 | 21.9 | ## | NieR:Automata | 3× | S26U, SD 8 EG 5, Adr
840 | Preview b08d8e8 |
| 25.2 → 60.0 | ## | ## | Roadside Research | 4× | Odin2 Portal, Adreno
740 | 0.7.11 Stable |
*Report 1 — coleslaw117*
*Report 2 — twitchlemaxou*
*Report 3 — Dylon*
**NEW DroidDeck FrameGen**
| FPS (reported) | 1% low | Frametime | Game | DDFG | Device | DD
version |
|:--:|:--:|:--:|:--|:--:|:--|:--|
## Testing
- All checkd on Github green
- APK compiles
- All verification passed on my fork
- Working on test build
* perf(effects): half-precision upscalers, AMD CAS and a gather-based NIS from Bannerlator
The screen-effect chain ran every upscaler and CAS in fp32, and NIS read its
36-tap support and coefficient tables per pixel. Ported from Bannerlator
(The412Banner/Bannerlator 16595ed8 + 671feb8c), where the same shaders run in
its Wayland compositor:
- SGSR, SGSR HQ, FSR EASU and RCAS get a half-precision build of the same
source (-DDD_HALF=1, *_half_frag.h). The divide-by-zero guards DroidDeck
added to EASU, RCAS and CAS are kept.
- CAS: AMD's FidelityFX CAS (ffx_cas.h v1.0.2, 5-tap), half precision.
- NIS: a prepass writes the scene with luma in alpha at scene size
(nis_luma.frag); nis3.frag gathers that luma and reads its coefficient banks
from a 4 KB uniform buffer (nis_coef.h, set 1 of its own pipeline layout).
Without the buffer, NIS falls back to nis.frag.
- debug.droiddeck.upscale.shaders=old builds the previous fp32 set, for A/B.
The half SGSR, SGSR HQ, CAS, NIS luma and nis3 SPIR-V is identical to
Bannerlator's (glslang 16.2.0). Notices: AMD CAS added to
THIRD_PARTY_NOTICES.txt; NVIDIA NIS covers the new NIS files.
* fix(effects): NIS prepass address at full precision; fast NIS only where it is safe
From review:
- nis_luma.frag: the half build made gl_FragCoord RelaxedPrecision, so a
16-bit load rounds pixel centres past x = 1024 (1279.5 -> 1280) and
texelFetch reads the wrong or an outside texel. Only colour and luma are
mediump now; the load and the integer address stay full precision
(checked in the SPIR-V).
- Fast NIS keeps luma in alpha, so it runs only on chain formats with at
least 8 alpha bits; the 10-bit HDR composition format (2-bit alpha) uses
nis.frag.
- A driver that rejects nis3_half or nis_luma_half gets nis.frag instead of
a disabled effects chain.
- If the NIS luma target cannot be allocated, that frame uses SGSR from the
scene instead of skipping every effect.
* Open the session menu on the first back tap instead of after the double-tap window
* Hold the GPU clock up while a session panel is open over the game
* Keep the double back tap working after the first tap opens the menu
The first tap opens the menu at once, and opening the menu cleared the
pending tap, so a second tap closed the menu instead of opening Steam's
quick menu. The tap that opened the menu now keeps its window, and a
second back press inside it goes to the double-tap action.
Outside Steam both taps toggle the menu, so a double tap no longer opens
and then closes it.
* fix(session): drop pending back taps on focus loss and departure
* fix(session): drop pending back taps when the drawer closes or another panel opens
* fix(session): drop the quick-menu input's pending tap when the drawer closes
* fix(session): keep a back press already down when the drawer closes
* fix(input): a captured touchpad drives the pointer
Android reports a captured touchpad's events as SOURCE_TOUCHPAD with the
finger positions on the pad and the movement in AXIS_RELATIVE_X/Y. The
capture handler only accepted SOURCE_MOUSE_RELATIVE, so every captured
touchpad event was dropped and the touchpad stopped working in a session.
Read the relative axes for a captured touchpad, and count a touchpad as
an attached pointer for the Auto relative mouse choice and for pointer
capture. A touchpad that declares SOURCE_TOUCHPAD is not captured for the
whole session, so Android keeps its cursor and gestures until a game holds
the pointer.
* fix(input): keep captured touchpad motion without relative axes
Some builds do not provide AXIS_RELATIVE_X/Y for a captured touchpad
(the AOSP include_relative_axis_values_for_captured_touchpads flag can
leave them out). Fall back to the movement between the pointer's
successive absolute positions, tracked per pointer id, and clear the
positions when capture changes or the pointer ends.
* fix(input): key captured touchpad positions by device too
A pointer id is only unique within its device, so the fallback positions
could collide between two touchpads or a replaced device. Key them by
device id and pointer id, and cover it with a test.
* fix(input): end only the touchpad that lifted
ACTION_UP and ACTION_CANCEL cleared every device's fallback positions.
Forget only the device that ended, so a second touchpad keeps its
baseline; a capture change still resets all of them.
* Give a captured touchpad taps, two-finger scroll and clickpad presses
* Keep captured touchpad clicks apart from mouse buttons
A tap's synthetic release shared the mouse's held-button owner, so it
could release a mouse button that was still held. Captured touchpad
presses now use their own owner, released when capture ends. A physical
pad press also keeps a later second finger from turning into a
right-click tap.
* Keep physical touchpad buttons on the mouse owner
A press made before capture was released under the captured owner and
stayed held. Physical buttons now always use the mouse owner, and only
gesture clicks use the touchpad owner. A physical press also releases a
pending tap click first, so the two never merge.
---------
Co-authored-by: maxjivi05 <maxjividen@gmail.com>