summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-12-21 15:28:50 +0100
committerLynne <dev@lynne.ee>2021-12-21 15:28:50 +0100
commit14b6805eb29d193105998e530e92525d7fe98d6d (patch)
tree343c0d6e3f98ccf1375404356ac794c0d8281d40 /configure
parentfa2e460f635d6cc32d5eb2d4c61a12caba59810c (diff)
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-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 05ac32b825..0ccd3bda11 100755
--- a/configure
+++ b/configure
@@ -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