From 95f24f47356264f4e2de6517bcfa9ec0cb17218a Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 25 Apr 2019 06:34:34 +0100 Subject: [PATCH] comp: Debug print Vulkan device and version --- src/xrt/compositor/common/comp_vk.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xrt/compositor/common/comp_vk.c b/src/xrt/compositor/common/comp_vk.c index f27f8dd88..8b7bc03cd 100644 --- a/src/xrt/compositor/common/comp_vk.c +++ b/src/xrt/compositor/common/comp_vk.c @@ -846,6 +846,13 @@ vk_select_physical_device(struct vk_bundle *vk) vk->physical_device = physical_devices[gpu_index]; + // Debug print info. + VkPhysicalDeviceProperties pdp; + vk->vkGetPhysicalDeviceProperties(physical_devices[gpu_index], &pdp); + VK_DEBUG(vk, "Selected device:\n\tname: %s\n\tversion: %u.%u.%u", + pdp.deviceName, VK_VERSION_MAJOR(pdp.apiVersion), + VK_VERSION_MINOR(pdp.apiVersion), + VK_VERSION_PATCH(pdp.apiVersion)); // Fill out the device memory props as well. vk->vkGetPhysicalDeviceMemoryProperties(vk->physical_device,