From 18b3b4feedaf19effdeeea39fa6dfddc3a392b90 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 9 Jun 2024 10:35:37 -0400 Subject: [PATCH] gpu: Print more info for images Show the memory format. This helps debugging our depth selection. --- gsk/gpu/gskgpuprint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gsk/gpu/gskgpuprint.c b/gsk/gpu/gskgpuprint.c index 53b919422e..7fa9df3dcb 100644 --- a/gsk/gpu/gskgpuprint.c +++ b/gsk/gpu/gskgpuprint.c @@ -140,9 +140,10 @@ void gsk_gpu_print_image (GString *string, GskGpuImage *image) { - g_string_append_printf (string, "%zux%zu ", + g_string_append_printf (string, "%zux%zu %s ", gsk_gpu_image_get_width (image), - gsk_gpu_image_get_height (image)); + gsk_gpu_image_get_height (image), + gdk_memory_format_get_name (gsk_gpu_image_get_format (image))); } void