Mesa (master): panfrost: Add debug print before query flushes

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon May 25 16:17:28 UTC 2020


Module: Mesa
Branch: master
Commit: 4c5d1e286003bedc52b92cef74013d2d3bb56f6f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c5d1e286003bedc52b92cef74013d2d3bb56f6f

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Fri May 22 21:35:47 2020 -0400

panfrost: Add debug print before query flushes

Just so we know if they're happening.

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

---

 src/gallium/drivers/panfrost/pan_context.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index e06d607375f..af822877635 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -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;



More information about the mesa-commit mailing list