mpv icon indicating copy to clipboard operation
mpv copied to clipboard

vo_vaapi_wayland: Bump zwp_linux_dmabuf_v1 to version 4

Open linkmauve opened this issue 2 years ago • 0 comments

This allows compositors to import the dmabuf using explicit modifiers, which makes it possible for the buffer to end up on a hardware plane instead of being composited with GL.

This PR is draft because, at least on Weston when using said hardware planes, there is a synchronisation issue which makes the whole thing unusable. The last commit is an attempt at fixing said issue, but I couldn’t finish it before falling ill, hence the draft PR. I expect the issue to be that vaapi reuses buffers before the compositor gives them back, so I added a callback on wl_buffer release which marks it not busy any longer, but that’s not enough, good luck to whoever finishes that code. :)

Fixes #10357.

linkmauve avatar Jul 08 '22 14:07 linkmauve