From efa0033fb464718a621b48f9fb83845065543baa Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 12 Feb 2024 07:39:07 -0500 Subject: [PATCH] inspector: Spell out Vulkan device types We know what these are, no need to be mysterious about it. --- gtk/inspector/general.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c index c5b218c4c9..6621514a39 100644 --- a/gtk/inspector/general.c +++ b/gtk/inspector/general.c @@ -513,11 +513,12 @@ init_vulkan (GtkInspectorGeneral *gen) char *device_name; char *api_version; char *driver_version; + const char *types[] = { "other", "integrated GPU", "discrete GPU", "virtual GPU", "CPU" }; vk_device = gen->display->vk_physical_device; vkGetPhysicalDeviceProperties (vk_device, &props); - device_name = g_strdup_printf ("%s (%d)", props.deviceName, props.deviceType); + device_name = g_strdup_printf ("%s (%s)", props.deviceName, types[props.deviceType]); api_version = g_strdup_printf ("%d.%d.%d", VK_VERSION_MAJOR (props.apiVersion), VK_VERSION_MINOR (props.apiVersion),