vulkan: Only log the list of extensions if debugging is enabled

Logging them with `g_print()` will write to stdout, which can interfere
with machine-readable output, for example when gnome-control-center
displays the GPU/driver name.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/7093
Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie
2024-10-18 20:21:00 +01:00
parent 95c2b6d5f4
commit d7e3d73efb

View File

@@ -577,7 +577,7 @@ physical_device_supports_extension (VkPhysicalDevice device,
{
first = FALSE;
for (uint32_t i = 0; i < n_device_extensions; i++)
g_print ("%s\n", extensions[i].extensionName);
GDK_DEBUG (VULKAN, "%s", extensions[i].extensionName);
}
for (uint32_t i = 0; i < n_device_extensions; i++)