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

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


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 Hoosier
Staff Software Engineer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8930 bytes
Desc: image001.png
URL: <>

More information about the wayland-devel mailing list