mpv/video/out/vulkan
Philip Langdale b70ed35ba4 vo_gpu: hwdec_vaapi: Add Vulkan interop
This change introduces a vulkan interop path for the vaapi hwdec.
The basic principles are mostly the same as for EGL, with the
exported dma_buf being imported by Vukan. The biggest difference
is that we cannot reuse the texture as we do with OpenGL - there's
no way to rebind a VkImage to a different piece of memory, as far
as I can see. So, a new texture is created on each map call.

I did not bother implementing a code path for the old libva API as
I think it's safe to assume any system with a working vulkan driver
will have access to a newer libva.

Note that we are using separate layers for the vaapi surface, just
as is done for EGL. This is because libplacebo doesn't support
multiplane images.

This change does not include format negotiation because no driver
implements the vk_ext_image_drm_format_modifier extension that
would be required to do that. In practice, the two formats we care
about (nv12, p010) work correctly, so we are not blocked. A separate
change had to be made in libplacebo to filter out non-fatal validation
errors related to surface sizes due to the lack of format negotiation.
2019-07-08 01:57:02 +02:00
..
common.h vo_gpu: vulkan: use libplacebo instead 2019-04-21 23:55:22 +03:00
context.c vo_gpu: vulkan: use libplacebo instead 2019-04-21 23:55:22 +03:00
context.h vo_gpu: vulkan: use libplacebo instead 2019-04-21 23:55:22 +03:00
context_wayland.c vo_gpu: hwdec_vaapi: Add Vulkan interop 2019-07-08 01:57:02 +02:00
context_win.c vo_gpu: vulkan: Add back context_win for libplacebo 2019-04-21 23:55:22 +03:00
context_xlib.c vo_gpu: hwdec_vaapi: Add Vulkan interop 2019-07-08 01:57:02 +02:00
utils.c vo_gpu: vulkan: use libplacebo instead 2019-04-21 23:55:22 +03:00
utils.h vo_gpu: vulkan: use libplacebo instead 2019-04-21 23:55:22 +03:00