summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2023-05-29 12:40:35 -0700
committerPhilip Langdale <github.philipl@overt.org>2023-05-29 13:26:29 -0700
commit0131ae4133a2f442fe1906d1632c4b84954c4140 (patch)
treea61f88aefaa2e4b475a323491a23ff0b93b9f080 /wscript
parentba5370e82a1139a249f27b78d22e8fe4092ad024 (diff)
downloadmpv-0131ae4133a2f442fe1906d1632c4b84954c4140.tar.bz2
mpv-0131ae4133a2f442fe1906d1632c4b84954c4140.tar.xz
hwdec_vulkan: simplify requirement checks for Vulkan interop
I originally wrote this trying to avoid doing an explicit version check on the headers, but it just makes things more confusing, and the requirements harder to understand. So, Vulkan interop now takes a dependency on the header release where they finalised the video decode headers. VK_EXT_descriptor_buffer was added in 1.3.235, so that's covered as well. Along the way I fixed a bug in the waf build where it was depending on libplacebo-next instead of libplacebo-decode.
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/wscript b/wscript
index f40fdad9d1..8ee61e0d7b 100644
--- a/wscript
+++ b/wscript
@@ -815,9 +815,14 @@ video_output_features = [
'func': check_statement('vulkan/vulkan_core.h', 'vkCreateDisplayPlaneSurfaceKHR(0, 0, 0, 0)',
use='vulkan')
}, {
+ 'name': 'vulkan-decode-headers',
+ 'desc': 'Vulkan headers with decode support',
+ 'deps': 'vulkan',
+ 'func': check_pkg_config('vulkan', '>= 1.3.238'),
+ }, {
'name': '--vulkan-interop',
'desc': 'Vulkan graphics interop',
- 'deps': 'vulkan && libplacebo-next',
+ 'deps': 'vulkan-decode-headers && libplacebo-decode',
'func': check_pkg_config('libavutil', '>= 58.11.100'),
}, {
'name': 'vaapi-libplacebo',