diff options
author | Lynne <dev@lynne.ee> | 2021-12-21 15:28:50 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-12-21 15:28:50 +0100 |
commit | 14b6805eb29d193105998e530e92525d7fe98d6d (patch) | |
tree | 343c0d6e3f98ccf1375404356ac794c0d8281d40 /configure | |
parent | fa2e460f635d6cc32d5eb2d4c61a12caba59810c (diff) | |
download | ffmpeg-14b6805eb29d193105998e530e92525d7fe98d6d.tar.gz |
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.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |