Module: Mesa
Branch: main
Commit: 93acce99f3d306fa1b00a51dc436caedd822c451
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=93acce99f3d306fa1b00a51dc436caedd822c451

Author: Faith Ekstrand <[email protected]>
Date:   Mon Nov 27 21:02:49 2023 -0600

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>

---

 src/vulkan/util/vk_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vulkan/util/vk_util.c b/src/vulkan/util/vk_util.c
index dbcf2c0edd4..841212034ec 100644
--- a/src/vulkan/util/vk_util.c
+++ b/src/vulkan/util/vk_util.c
@@ -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)

Reply via email to