Module: Mesa
Branch: main
Commit: 6ba62be633f27bba122343f93d114904cad00fba
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ba62be633f27bba122343f93d114904cad00fba

Author: Alyssa Rosenzweig <[email protected]>
Date:   Sat Oct 29 18:16:22 2022 -0400

panfrost: Print perf debug on seqnum overflow

Another unexpected source of flushes.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21830>

---

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

diff --git a/src/gallium/drivers/panfrost/pan_job.c 
b/src/gallium/drivers/panfrost/pan_job.c
index 955535c3e01..171f3dc8d78 100644
--- a/src/gallium/drivers/panfrost/pan_job.c
+++ b/src/gallium/drivers/panfrost/pan_job.c
@@ -166,8 +166,10 @@ panfrost_get_batch(struct panfrost_context *ctx,
    assert(batch);
 
    /* The selected slot is used, we need to flush the batch */
-   if (batch->seqnum)
+   if (batch->seqnum) {
+      perf_debug_ctx(ctx, "Flushing batch due to seqnum overflow");
       panfrost_batch_submit(ctx, batch);
+   }
 
    panfrost_batch_init(ctx, key, batch);
 

Reply via email to