How to fetch the implicit sync fence for a GPU buffer?

Hoosier, Matt Matt.Hoosier at garmin.com
Thu Jun 1 21:15:52 UTC 2023


Hi,

In the past there has been writing about Wayland's model using implicit synchronization of GPU renderbuffers and KMS commits [1] [2].

It would sometimes be nice to do that waiting explicitly in a compositor before enqueueing a KMS pageflip that references a buffer who may go on rendering for some time still. This stalls the pipeline.

I'm wondering whether there's an API -- maybe something analogous to drmPrimeHandleToFD() - that allows userspace to fetch a waitable fence fd for a dmabuf?

-Matt

[1] https://www.collabora.com/news-and-blog/blog/2022/06/09/bridging-the-synchronization-gap-on-linux/
[2] https://lwn.net/Articles/814587/

Matt Hoosier
Staff Software Engineer
[auto_oem_sig_96dpi_solid]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20230601/fb5e48ef/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8930 bytes
Desc: image001.png
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20230601/fb5e48ef/attachment.png>


More information about the wayland-devel mailing list