From 64f4249604a99f19edd45ee1412a689259c685a6 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sun, 31 Jul 2022 12:59:15 -0700 Subject: hwdec/dmabuf_interop: use AVDRMFrameDescriptor to describe dmabufs Annoyingly, libva and libdrm use different structs to describe dmabufs and if we are going to support drmprime, we must pick one format and do some shuffling in the other case. I've decided to use AVDRMFrameDescriptor as our internal format as this removes the libva dependency from dmabuf_interop. That means that the future drmprime hwdec will be able to populate it directly and the existing hwdec_vaapi needs to copy the struct members around, but that's cheap and not a concern. --- wscript | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 40db44cb95..7341b71d25 100644 --- a/wscript +++ b/wscript @@ -782,6 +782,16 @@ video_output_features = [ 'name': '--sixel', 'desc': 'Sixel', 'func': check_pkg_config('libsixel', '>= 1.5'), + }, { + 'name': 'dmabuf-interop-gl', + 'desc': 'dmabuf GL Interop', + 'deps': 'egl && drm', + 'func': check_true, + }, { + 'name': 'dmabuf-interop-pl', + 'desc': 'dmabuf libplacebo interop', + 'deps': 'vaapi-libplacebo', + 'func': check_true, } ] -- cgit v1.2.3