[gtk+] vulkan: Add more debug spew



commit 2101f26b4922b131895828ed668c0900e8182c3b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 3 11:34:41 2017 -0400

    vulkan: Add more debug spew

 gsk/gskvulkanrenderpass.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gskvulkanrenderpass.c b/gsk/gskvulkanrenderpass.c
index 7b49b18..b5bab5f 100644
--- a/gsk/gskvulkanrenderpass.c
+++ b/gsk/gskvulkanrenderpass.c
@@ -443,6 +443,14 @@ gsk_vulkan_render_pass_upload_fallback (GskVulkanRenderPass  *self,
 
   node = op->node;
 
+  GSK_NOTE (FALLBACK,
+            g_print ("Upload op=%s, node %s[%p], bounds %gx%g\n",
+                     op->type == GSK_VULKAN_OP_FALLBACK_CLIP ? "fallback-clip" :
+                     (op->type == GSK_VULKAN_OP_FALLBACK_ROUNDED_CLIP ? "fallback-rounded-clip" : 
"fallback"),
+                     node->name ? node->name : node->node_class->type_name, node,
+                     ceil (node->bounds.size.width),
+                     ceil (node->bounds.size.height)));
+
   /* XXX: We could intersect bounds with clip bounds here */
   surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
                                         ceil (node->bounds.size.width),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]