vulkan: prettify the various versions in the debug output
authorMatthew Waters <matthew@centricular.com>
Mon, 11 Apr 2016 08:06:25 +0000 (18:06 +1000)
committerMatthew Waters <matthew@centricular.com>
Mon, 11 Apr 2016 23:39:12 +0000 (09:39 +1000)
output human readable numbers.

ext/vulkan/vkdevice.c

index 24af95891d13a5b2e0cc522a982637843cc3028c..5c2b279ef2f69c910aa5cdeee989dff71041ec46 100644 (file)
@@ -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;
 }