-
Notifications
You must be signed in to change notification settings - Fork 2
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
Provide zwp_linux_explicit_synchronization_unstable_v1 #69
Comments
mentioned in issue kwinft#3 |
marked this issue as related to kwinft#3 |
Note that there is a v2 proposed: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/90 |
|
So it is probably better to directly start implementing v2 of the protocol. |
In GitLab by @aramgrigoryan on Aug 24, 2021, 17:44 what if something needs v1 too? |
In case a client supports v1 but not v2, the client would fall back to implicit synchronization. This is not optimal but acceptable. The most important client to consider though is Mesa, and this is guaranteed to be updated to v2 rather soon after the kernel bits are in place and the v2 Wayland protocol has been released. |
Resources
Server plan
Three classes representing protocol objects:
LinuxSurfaceSynchronizationV1
Writing these alone looks rather simple. But the integration of LinuxSurfaceSynchronizationV1 with Surface might be difficult. On commit we want the wl_buffer to not yet be sampled.
Wrapland might only provide a getter on the Buffer object to tell the compositor if this Buffer has a fence. Then the compositor must listen for the fd signal (this task could be encapsulated in the Buffer object).
LinuxBufferReleaseV1
The events of LinuxBufferReleaseV1 can likely be processed in the Buffer class. Not sure about the fenced_release. What's the advantage to immediate_release if the client can not expect it to always be this one? Also should it be sent at the same time wl_buffer.release is sent?
The text was updated successfully, but these errors were encountered: