a/vk: Also print device type when listing GPUs

This commit is contained in:
Jakob Bornecrantz 2023-08-29 18:58:34 +01:00 committed by Ryan Pavlik
parent ccf232d4ac
commit 7b3763650e

View file

@ -52,17 +52,21 @@ vk_print_device_info(struct vk_bundle *vk,
uint32_t gpu_index, uint32_t gpu_index,
const char *title) const char *title)
{ {
const char *device_type_string = vk_physical_device_type_string(pdp->deviceType);
U_LOG_IFL(log_level, vk->log_level, U_LOG_IFL(log_level, vk->log_level,
"%s" "%s"
"\tname: %s\n" "\tname: %s\n"
"\tvendor: 0x%04x\n" "\tvendor: 0x%04x\n"
"\tproduct: 0x%04x\n" "\tproduct: 0x%04x\n"
"\tdeviceType: %s\n"
"\tapiVersion: %u.%u.%u\n" "\tapiVersion: %u.%u.%u\n"
"\tdriverVersion: 0x%08x", "\tdriverVersion: 0x%08x",
title, // title, //
pdp->deviceName, // pdp->deviceName, //
pdp->vendorID, // pdp->vendorID, //
pdp->deviceID, // pdp->deviceID, //
device_type_string, //
VK_VERSION_MAJOR(pdp->apiVersion), // VK_VERSION_MAJOR(pdp->apiVersion), //
VK_VERSION_MINOR(pdp->apiVersion), // VK_VERSION_MINOR(pdp->apiVersion), //
VK_VERSION_PATCH(pdp->apiVersion), // VK_VERSION_PATCH(pdp->apiVersion), //