From ab33030250a6f8a827e6d7faaf79f85039a6e975 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 11 Apr 2016 18:06:25 +1000 Subject: [PATCH] vulkan: prettify the various versions in the debug output output human readable numbers. --- ext/vulkan/vkdevice.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ext/vulkan/vkdevice.c b/ext/vulkan/vkdevice.c index 24af95891d..5c2b279ef2 100644 --- a/ext/vulkan/vkdevice.c +++ b/ext/vulkan/vkdevice.c @@ -143,10 +143,14 @@ _physical_device_info (GstVulkanDevice * device, GError ** error) vkGetPhysicalDeviceProperties (gpu, &props); - GST_INFO_OBJECT (device, "device name %s type %s api version %u, " - "driver version %u vendor ID 0x%x, device ID 0x%x", props.deviceName, - _device_type_to_string (props.deviceType), props.apiVersion, - props.driverVersion, props.vendorID, props.deviceID); + GST_INFO_OBJECT (device, "device name %s type %s api version %u.%u.%u, " + "driver version %u.%u.%u vendor ID 0x%x, device ID 0x%x", + props.deviceName, _device_type_to_string (props.deviceType), + VK_VERSION_MAJOR (props.apiVersion), VK_VERSION_MINOR (props.apiVersion), + VK_VERSION_PATCH (props.apiVersion), + VK_VERSION_MAJOR (props.driverVersion), + VK_VERSION_MINOR (props.driverVersion), + VK_VERSION_PATCH (props.driverVersion), props.vendorID, props.deviceID); return TRUE; }