diff options
author | Dudemanguy <random342@airmail.cc> | 2023-07-12 20:11:32 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-07-14 14:24:45 +0000 |
commit | 2616b2b11eac26dfbb85926477a652d2a0540ef6 (patch) | |
tree | 127ff33a2175caf750bfe7a767a4bceee9222801 /wscript | |
parent | cf0373e15bbe3da8af7b3d1bbe1ae5caee9672cf (diff) | |
download | mpv-2616b2b11eac26dfbb85926477a652d2a0540ef6.tar.bz2 mpv-2616b2b11eac26dfbb85926477a652d2a0540ef6.tar.xz |
build: make dmabuf-wayland a build option and require drm
It makes more sense as an option at this point. Also libdrm is not
optional at all. You have to get a drm format and modifier for this to
even work (the VO will just fail without DRM). Just hard require it and
remove the guards. vaapi can remain optional.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -569,6 +569,11 @@ video_output_features = [ 'deps': 'wayland', 'func': check_statement('sys/mman.h', 'memfd_create("mpv", MFD_CLOEXEC | MFD_ALLOW_SEALING)') + }, { + 'name': '--dmabuf-wayland', + 'desc': 'dmabuf-wayland video output', + 'deps': 'wayland && memfd_create && drm', + 'func': check_true, } , { 'name': '--x11', 'desc': 'X11', @@ -697,11 +702,6 @@ video_output_features = [ 'deps': 'vaapi && gl-wayland', 'func': check_pkg_config('libva-wayland', '>= 1.1.0'), }, { - 'name': 'dmabuf-wayland', - 'desc': 'Wayland dmabuf support', - 'deps': 'wayland && memfd_create && (vaapi-wayland || drm)', - 'func': check_true, - }, { 'name': '--vaapi-drm', 'desc': 'VAAPI (DRM/EGL support)', 'deps': 'vaapi && egl-drm', |