Repository navigation
WaylandBackend: avoid reattaching static black buffer - #2448
Merged
matte-schwartz merged 1 commit intoSep 30, 2026
Merged
matte-schwartz merged 1 commit into
matte-schwartz merged 1 commit into
Conversation
connormclaud
marked this pull request as ready for review
September 29, 2026 20:01
Collaborator
|
I think the fix is better placed in how we track the black buffer than in CWaylandPlane::Present. We probably want something more like: can you check if that works? that way we don't need the BufferAttachPolicy/BufferAttachResult plumbing or the last-attached-buffer tracking |
The 1x1 black backing framebuffer is immutable, backend-owned, and never needs client buffer locking. Tracking acquire and release on it causes spurious "Compositor released us but we were not acquired" error spam when buffer release events arrive asynchronously from previous frames. Fixes: ValveSoftware#1636
connormclaud
force-pushed
the
fix/wayland-fb-acquire-once
branch
from
September 30, 2026 17:09
3cdb8c7 to
20b80fa
Compare
Author
|
I have tested your patch works with glxgears, vkcube, Diablo 2 Resurrected and Antichamber and updated PR with it |
Collaborator
|
thanks! |
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.
Keep the immutable 1x1 backing buffer attached across presents.
The Wayland core protocol says: "wl_surface.commit makes the pending wl_buffer the new surface contents." Reattaching the unchanged buffer on every paint is unnecessary.
fixes: #1636