Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup for #419 and #421 #425

Merged
merged 2 commits into from
Nov 29, 2021
Merged

Fixup for #419 and #421 #425

merged 2 commits into from
Nov 29, 2021

Conversation

Drakulix
Copy link
Member

#419 and #421 brought buffer age support to the x11 backend.

However it is not utilized (yet) by anvil, causing two issues with the implementation to slip through.
#423 uncovered them and these two commits are cherry-picked from that PR to unblock further development of the X11 backend, while #423 is still in flux and will likely need a lot more time.

Slots with an age of 0 were never rendered to. This means
we should not increase their age, when others are submitted
or the renderer might wrongfully assume usuable contents are
available in the buffer.
@Drakulix Drakulix requested a review from i509VCB November 29, 2021 14:39
@Drakulix Drakulix mentioned this pull request Nov 29, 2021
15 tasks
The current code always acquires the buffer it just submitted,
which results in always rendering to a buffer with age "1", although
its contents are older, because the currently held buffer is already
submitted, just not to the swapchain. When it finally is submitted
its age is again set to 1, the other gets its correct age (but too late)
and the circle is repeated again. So lets fix that.
@Drakulix Drakulix merged commit f3ae458 into master Nov 29, 2021
@Drakulix Drakulix deleted the fixup/buffer_age branch June 23, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants