panfrost: Add debug print before query flushes
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 23 May 2020 01:35:47 +0000 (21:35 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 25 May 2020 16:01:18 +0000 (16:01 +0000)
Just so we know if they're happening.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5202>

src/gallium/drivers/panfrost/pan_context.c

index e06d607375f5987a5203e41532031de07a8b074d..af82287763529b5f391045f976f81895537314be 100644 (file)
@@ -1311,7 +1311,7 @@ panfrost_get_query_result(struct pipe_context *pipe,
         case PIPE_QUERY_OCCLUSION_COUNTER:
         case PIPE_QUERY_OCCLUSION_PREDICATE:
         case PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE:
-                /* Flush first */
+                DBG("Flushing for occlusion query\n");
                 panfrost_flush_all_batches(ctx, true);
 
                 /* Read back the query results */
@@ -1328,6 +1328,7 @@ panfrost_get_query_result(struct pipe_context *pipe,
 
         case PIPE_QUERY_PRIMITIVES_GENERATED:
         case PIPE_QUERY_PRIMITIVES_EMITTED:
+                DBG("Flushing for primitive query\n");
                 panfrost_flush_all_batches(ctx, true);
                 vresult->u64 = query->end - query->start;
                 break;