Repository navigation
android: A56 release the framebuffers a flip replaced at the next flip; CI builds the Xwayland implicit-sync fix - #25
Open
utkarshdalal wants to merge 4 commits into
Open
utkarshdalal wants to merge 4 commits into
utkarshdalal wants to merge 4 commits into
Conversation
…lip on gamenative-drm
… it in the artifact
This was referenced Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On KMS a page-flip event means the replaced framebuffer is free. On gamenative-drm the event arrives when SurfaceFlinger latches the new frame, but the replaced buffer stays on the panel until its release fence signals, about one vsync later. Dropping the FB at the event hands the client a buffer that is still being scanned out, which it then renders into. With the cursor plane (A55) this path is taken by every cursor-showing game, which is how the Two Point Campus reports started.
Change
0052-A56-release-framebuffers-one-flip-later.patch): under gamenative-drmpage_flip_handlerkeeps the FBs a flip took off screen inm_RetiredFbIdsand drops them at the next flip; a plane turned off drops both sets;finish_drmdrops everything. Only the release moves; event, timestamp and visible bookkeeping are unchanged.GAMESCOPE_GN_RELEASE_AT_FLIP=1restores the KMS behaviour. Swapchain depth is discussed in the patch header (pool 5 slots, DXVK 3 images, Xwayland allocates on demand, composite ring of 3 reused by index).libxcvt.so, as the shipped payload expects), the Xwayland checkout points at GameNative/xserverxwayland-no-implicit-sync-gamenative(Xwayland finishes GPU work before each present on gamenative-drm, xwayland: treat implicit sync as unsupported on gamenative-drm xserver#1), and the artifact includes the Xwayland binary.Pairs with gamenative-drm
scanout-flip-at-latch(the daemon sends the flip event at SurfaceFlinger latch, after the previous release fence).Measured (Retroid Pocket 6)