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]

Reply via email to