diff --git a/src/xrt/auxiliary/vk/vk_helpers.c b/src/xrt/auxiliary/vk/vk_helpers.c index d23579715..566ccdefc 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.c +++ b/src/xrt/auxiliary/vk/vk_helpers.c @@ -1832,12 +1832,14 @@ vk_init_from_given(struct vk_bundle *vk, VkPhysicalDevice physical_device, VkDevice device, uint32_t queue_family_index, - uint32_t queue_index) + uint32_t queue_index, + enum u_logging_level log_level) { VkResult ret; // First memset it clear. U_ZERO(vk); + vk->log_level = log_level; ret = vk_get_loader_functions(vk, vkGetInstanceProcAddr); if (ret != VK_SUCCESS) { diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h index 124b3d719..83a2716ce 100644 --- a/src/xrt/auxiliary/vk/vk_helpers.h +++ b/src/xrt/auxiliary/vk/vk_helpers.h @@ -505,7 +505,8 @@ vk_init_from_given(struct vk_bundle *vk, VkPhysicalDevice physical_device, VkDevice device, uint32_t queue_family_index, - uint32_t queue_index); + uint32_t queue_index, + enum u_logging_level log_level); /*! * @ingroup aux_vk diff --git a/src/xrt/compositor/client/comp_vk_client.c b/src/xrt/compositor/client/comp_vk_client.c index 34dfe3465..371b6a94f 100644 --- a/src/xrt/compositor/client/comp_vk_client.c +++ b/src/xrt/compositor/client/comp_vk_client.c @@ -661,9 +661,17 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn, c->base.base.info.format_count = xcn->base.info.format_count; // Default to info. - c->vk.log_level = U_LOGGING_INFO; + enum u_logging_level log_level = U_LOGGING_INFO; - ret = vk_init_from_given(&c->vk, getProc, instance, physicalDevice, device, queueFamilyIndex, queueIndex); + ret = vk_init_from_given( // + &c->vk, // vk_bundle + getProc, // vkGetInstanceProcAddr + instance, // instance + physicalDevice, // physical_device + device, // device + queueFamilyIndex, // queue_family_index + queueIndex, // queue_index + log_level); // log_level if (ret != VK_SUCCESS) { goto err_free; }