Commit 2caa08f8 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz

comp: Debug print more info

parent 95f24f47
Pipeline #33105 passed with stages
in 55 seconds
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment