vulkan: Default override patch version to VK_HEADER_VERSION

The patch version shouldn't matter but, on the off chance it does, we
don't want to be advertising non-existent versions.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26383>
This commit is contained in:
Faith Ekstrand 2023-11-27 21:02:49 -06:00 committed by Marge Bot
parent 11897376c7
commit 93acce99f3

View file

@ -63,7 +63,7 @@ uint32_t vk_get_version_override(void)
int major = atoi(str);
int minor = minor_str ? atoi(minor_str + 1) : 0;
int patch = patch_str ? atoi(patch_str + 1) : 0;
int patch = patch_str ? atoi(patch_str + 1) : VK_HEADER_VERSION;
/* Do some basic version sanity checking */
if (major < 1 || minor < 0 || patch < 0 || minor > 1023 || patch > 4095)