[gtk/wip/chergert/glproto: 295/493] give more info in filename when debugging




commit 6e77ee9cbfb9d219e1d5b63ec29585dcf2f304b7
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 28 22:25:42 2021 -0800

    give more info in filename when debugging

 gsk/next/gskglcommandqueue.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 1f27ee8d08..f2c2787abd 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -863,10 +863,13 @@ gsk_gl_command_queue_execute (GskGLCommandQueue    *self,
       if (batch->any.kind == GSK_GL_COMMAND_KIND_DRAW ||
           batch->any.kind == GSK_GL_COMMAND_KIND_CLEAR)
         {
-          char filename[32];
+          char filename[64];
           g_snprintf (filename, sizeof filename,
-                      "capture%u_batch%d_kind%u.png",
-                      count++, next_batch_index, batch->any.kind);
+                      "capture%03u_batch%03d_kind%u_program%u_u%u_b%u.png",
+                      count, next_batch_index,
+                      batch->any.kind, batch->any.program,
+                      batch->any.kind == GSK_GL_COMMAND_KIND_DRAW ? batch->draw.uniform_count : 0,
+                      batch->any.kind == GSK_GL_COMMAND_KIND_DRAW ? batch->draw.bind_count : 0);
           gsk_gl_command_queue_capture_png (self, filename, width, height);
         }
 #endif


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