From 2caa08f8a8aab21393497595944e3fcf4671ee34 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 25 Apr 2019 06:46:20 +0100 Subject: [PATCH] comp: Debug print more info --- src/xrt/compositor/common/comp_vk.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/xrt/compositor/common/comp_vk.c b/src/xrt/compositor/common/comp_vk.c index 8b7bc03cd..269d6b5c2 100644 --- a/src/xrt/compositor/common/comp_vk.c +++ b/src/xrt/compositor/common/comp_vk.c @@ -849,10 +849,20 @@ vk_select_physical_device(struct vk_bundle *vk) // 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_DEBUG(vk, + "Selected device:\n" + "\tname: %s\n" + "\tvendor: 0x%04x\n" + "\tproduct: 0x%04x\n" + "\tapiVersion: %u.%u.%u\n" + "\tdriverVersion: %u.%u.%u", + pdp.deviceName, pdp.vendorID, pdp.deviceID, + VK_VERSION_MAJOR(pdp.apiVersion), VK_VERSION_MINOR(pdp.apiVersion), - VK_VERSION_PATCH(pdp.apiVersion)); + VK_VERSION_PATCH(pdp.apiVersion), + VK_VERSION_MAJOR(pdp.driverVersion), + VK_VERSION_MINOR(pdp.driverVersion), + VK_VERSION_PATCH(pdp.driverVersion)); // Fill out the device memory props as well. vk->vkGetPhysicalDeviceMemoryProperties(vk->physical_device,