From a188ef219c910367f95a768246f057f9c4a96a9a Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Fri, 20 Jan 2023 14:11:36 +0100 Subject: [PATCH] a/vk: Store vulkan version in vk_bundle Also adds code in c/util's Vulkan code to store it. --- src/xrt/auxiliary/vk/vk_helpers.h | 1 + src/xrt/compositor/util/comp_vulkan.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index 3fd46abf4..214f8a0f9 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -50,6 +50,7 @@ struct vk_bundle enum u_logging_level log_level; VkInstance instance; + uint32_t version; VkPhysicalDevice physical_device; int physical_device_index; VkDevice device; diff --git a/src/xrt/compositor/util/comp_vulkan.c b/src/xrt/compositor/util/comp_vulkan.c index 51753c639..8845aa9d1 100644 --- a/src/xrt/compositor/util/comp_vulkan.c +++ b/src/xrt/compositor/util/comp_vulkan.c @@ -194,6 +194,8 @@ create_instance(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_arg return ret; } + vk->version = vk_args->required_instance_version; + u_string_list_destroy(&instance_ext_list); ret = vk_get_instance_functions(vk);