summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2022-07-31 12:59:15 -0700
committerPhilip Langdale <github.philipl@overt.org>2022-08-03 16:56:17 -0700
commit64f4249604a99f19edd45ee1412a689259c685a6 (patch)
tree4c64dfa596e7ea8d85aa031f7bd959dc2e29ec0c /wscript
parente9e50595895f3b467f36de2babdfdd8f3ba85452 (diff)
downloadmpv-64f4249604a99f19edd45ee1412a689259c685a6.tar.bz2
mpv-64f4249604a99f19edd45ee1412a689259c685a6.tar.xz
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.
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 10 insertions, 0 deletions
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,
}
]