From 7358b9d37126e824cbc3a226d832e9cc1d7b01ea Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Tue, 27 Sep 2022 12:12:54 -0400 Subject: vo_dmabuf_wayland: wayland VO displaying dmabuf buffers Wayland VO that can display images from either vaapi or drm hwdec The PR adds the following changes: 1. a context_wldmabuf context with no gl dependencies 2. no-op ra_wldmabuf and dmabuf_interop_wldmabuf objects no-op because there is no need to map/unmap the drmprime buffer, and there is no need to manage any textures. Tested on both x86_64 and rk3399 AArch64 --- video/out/gpu/context.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'video/out/gpu/context.c') diff --git a/video/out/gpu/context.c b/video/out/gpu/context.c index e0beb845c2..052e3cdc80 100644 --- a/video/out/gpu/context.c +++ b/video/out/gpu/context.c @@ -55,6 +55,9 @@ extern const struct ra_ctx_fns ra_ctx_vulkan_display; /* Direct3D 11 */ extern const struct ra_ctx_fns ra_ctx_d3d11; +/* No API */ +extern const struct ra_ctx_fns ra_ctx_wldmabuf; + static const struct ra_ctx_fns *contexts[] = { #if HAVE_D3D11 &ra_ctx_d3d11, @@ -108,7 +111,11 @@ static const struct ra_ctx_fns *contexts[] = { &ra_ctx_vulkan_xlib, #endif &ra_ctx_vulkan_display, +#endif +/* No API contexts: */ +#if HAVE_WAYLAND + &ra_ctx_wldmabuf, #endif }; -- cgit v1.2.3