From 7b3763650e3a26bad701236f89a7fa2e08d2ffb1 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Tue, 29 Aug 2023 18:58:34 +0100 Subject: [PATCH] a/vk: Also print device type when listing GPUs --- src/xrt/auxiliary/vk/vk_print.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xrt/auxiliary/vk/vk_print.c b/src/xrt/auxiliary/vk/vk_print.c index fcfc13b8a..76cbd4447 100644 --- a/src/xrt/auxiliary/vk/vk_print.c +++ b/src/xrt/auxiliary/vk/vk_print.c @@ -52,17 +52,21 @@ vk_print_device_info(struct vk_bundle *vk, uint32_t gpu_index, const char *title) { + const char *device_type_string = vk_physical_device_type_string(pdp->deviceType); + U_LOG_IFL(log_level, vk->log_level, "%s" "\tname: %s\n" "\tvendor: 0x%04x\n" "\tproduct: 0x%04x\n" + "\tdeviceType: %s\n" "\tapiVersion: %u.%u.%u\n" "\tdriverVersion: 0x%08x", title, // pdp->deviceName, // pdp->vendorID, // pdp->deviceID, // + device_type_string, // VK_VERSION_MAJOR(pdp->apiVersion), // VK_VERSION_MINOR(pdp->apiVersion), // VK_VERSION_PATCH(pdp->apiVersion), //