diff options
author | Erik Faye-Lund <kusmabite@gmail.com> | 2023-12-13 19:25:52 +0100 |
---|---|---|
committer | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2024-01-03 12:44:23 +0100 |
commit | b44db8ee67ab2bc62428b8976dac4ba0476f9846 (patch) | |
tree | d117899c766f39cccdda3dfe164f43fa3a20a4ff | |
parent | bb3199e5c81edcae989ee65725231fc3e3e45f23 (diff) |
vkgears: make info output consistent
This does two things: First of all, it makes the deviceExtensions
printing use an equals-sign just like the other things printed. Then
to clean up the result, the equals signs are aligned with the new one.
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
-rw-r--r-- | src/vulkan/vkgears.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vulkan/vkgears.c b/src/vulkan/vkgears.c index f346f36c..ce7d103f 100644 --- a/src/vulkan/vkgears.c +++ b/src/vulkan/vkgears.c @@ -1311,15 +1311,15 @@ print_info() { VkPhysicalDeviceProperties properties; vkGetPhysicalDeviceProperties(physical_device, &properties); - printf("apiVersion = %d.%d.%d\n", + printf("apiVersion = %d.%d.%d\n", VK_API_VERSION_MAJOR(properties.apiVersion), VK_API_VERSION_MINOR(properties.apiVersion), VK_API_VERSION_PATCH(properties.apiVersion)); - printf("driverVersion = %04x\n", properties.driverVersion); - printf("vendorID = %04x\n", properties.vendorID); - printf("deviceID = %04x\n", properties.deviceID); - printf("deviceType = %s\n", get_devtype_str(properties.deviceType)); - printf("deviceName = %s\n", properties.deviceName); + printf("driverVersion = %04x\n", properties.driverVersion); + printf("vendorID = %04x\n", properties.vendorID); + printf("deviceID = %04x\n", properties.deviceID); + printf("deviceType = %s\n", get_devtype_str(properties.deviceType)); + printf("deviceName = %s\n", properties.deviceName); uint32_t num_extensions = 0; VkExtensionProperties *extensions; @@ -1330,7 +1330,7 @@ print_info() error("Failed to allocate memory"); vkEnumerateDeviceExtensionProperties(physical_device, NULL, &num_extensions, extensions); - printf("deviceExtensions:\n"); + printf("deviceExtensions =\n"); for (int i = 0; i < num_extensions; ++i) printf("\t%s\n", extensions[i].extensionName); } |