You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02: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:
2
configure
vendored
2
configure
vendored
@@ -6915,7 +6915,7 @@ enabled crystalhd && check_lib crystalhd "stdint.h libcrystalhd/libcrystalhd_if.
|
|||||||
|
|
||||||
if enabled vulkan; then
|
if enabled vulkan; then
|
||||||
check_pkg_config_header_only vulkan "vulkan >= 1.2.189" "vulkan/vulkan.h" "defined VK_VERSION_1_2" ||
|
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
|
fi
|
||||||
|
|
||||||
if enabled x86; then
|
if enabled x86; then
|
||||||
|
Reference in New Issue
Block a user