Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

export-dmabuf is racy #74

Open
emersion opened this issue Mar 27, 2020 · 2 comments
Open

export-dmabuf is racy #74

emersion opened this issue Mar 27, 2020 · 2 comments

Comments

@emersion
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member Author

emersion commented Nov 1, 2021

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant