mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-07 23:32:33 +00:00
configure: improve non-pkgconfig Vulkan version check
Check for the patch version as well as the major+minor version. The VK_API_VERSION macros are not usable in preprocessor code due to casts. The patch (header) version is meant to linearly increment and not be reset, however it's better to trust, but verify.
This commit is contained in:
parent
fa2e460f63
commit
14b6805eb2
2
configure
vendored
2
configure
vendored
@ -6915,7 +6915,7 @@ enabled crystalhd && check_lib crystalhd "stdint.h libcrystalhd/libcrystalhd_if.
|
||||
|
||||
if enabled vulkan; then
|
||||
check_pkg_config_header_only vulkan "vulkan >= 1.2.189" "vulkan/vulkan.h" "defined VK_VERSION_1_2" ||
|
||||
check_cpp_condition vulkan "vulkan/vulkan.h" "defined VK_VERSION_1_2"
|
||||
check_cpp_condition vulkan "vulkan/vulkan.h" "defined(VK_VERSION_1_3) || (defined(VK_VERSION_1_2) && VK_HEADER_VERSION >= 189)"
|
||||
fi
|
||||
|
||||
if enabled x86; then
|
||||
|
Loading…
Reference in New Issue
Block a user