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.
pull/378/head
Lynne 3 years ago
parent fa2e460f63
commit 14b6805eb2
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 2
      configure

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…
Cancel
Save