summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_context.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-06-28 07:53:34 -0400
committerRob Clark <[email protected]>2016-07-30 09:23:42 -0400
commitdcde4cd114e906f5c4372dbb6758026c9222cd2a (patch)
tree861ba72403bd7f5fe3cea5cc5a5c62a1a86c03de /src/gallium/drivers/freedreno/freedreno_context.c
parent9f219c7047b51561f6f69274d445e6a6ec41c5f8 (diff)
freedreno: spiff up some debug traces
Make it easier to track batches, to ensure things happen properly when they are reordered. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c
index e81d31175f0..13a17e2a78e 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.c
+++ b/src/gallium/drivers/freedreno/freedreno_context.c
@@ -126,6 +126,12 @@ fd_context_destroy(struct pipe_context *pctx)
fd_device_del(ctx->dev);
+ if (fd_mesa_debug & (FD_DBG_BSTAT | FD_DBG_MSGS)) {
+ printf("batch_total=%u, batch_sysmem=%u, batch_gmem=%u, batch_restore=%u\n",
+ (uint32_t)ctx->stats.batch_total, (uint32_t)ctx->stats.batch_sysmem,
+ (uint32_t)ctx->stats.batch_gmem, (uint32_t)ctx->stats.batch_restore);
+ }
+
FREE(ctx);
}