wlr-protocols icon indicating copy to clipboard operation
wlr-protocols copied to clipboard

export-dmabuf is racy

Open emersion opened this issue 4 years ago • 2 comments

To fix the race:

  • Add a way for the client to signal to the compositor that they're done with the buffer
  • Maybe add a way for the compositor to tell the client that they're too slow

(How does that play with explicit sync?)

emersion avatar Mar 27 '20 14:03 emersion

Add a way for the client to signal to the compositor that they're done with the buffer

Actually we already have the destroy request for this.

Maybe add a way for the compositor to tell the client that they're too slow

After discussing on IRC, probably not. Many clients (e.g. those using hw encoding) won't be able to cope with a frame becoming invalid.

Instead, check whether the client holds too many DMA-BUFs when sending DMA-BUFs.

emersion avatar Mar 27 '20 16:03 emersion

wlr-protocols has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/issues/74

emersion avatar Nov 01 '21 10:11 emersion