Mesa (main): freedreno: Add string-marker debug trace
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 10 02:36:05 UTC 2021
Module: Mesa
Branch: main
Commit: 93b540c72e2b111c9ca1354a72436f3a0e6893e7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=93b540c72e2b111c9ca1354a72436f3a0e6893e7
Author: Rob Clark <robdclark at chromium.org>
Date: Tue Jun 8 15:16:04 2021 -0700
freedreno: Add string-marker debug trace
This is useful in combination with --markers arg to apitrace.
Signed-off-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11200>
---
src/gallium/drivers/freedreno/freedreno_context.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c
index 4063d7adc3b..1bb72758493 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.c
+++ b/src/gallium/drivers/freedreno/freedreno_context.c
@@ -52,7 +52,7 @@ fd_context_flush(struct pipe_context *pctx, struct pipe_fence_handle **fencep,
*/
fd_batch_reference(&batch, ctx->batch);
- DBG("%p: flush: flags=%x", batch, flags);
+ DBG("%p: flush: flags=%x, fencep=%p", batch, flags, fencep);
if (fencep && !batch) {
batch = fd_context_batch(ctx);
@@ -235,6 +235,8 @@ fd_emit_string_marker(struct pipe_context *pctx, const char *string,
{
struct fd_context *ctx = fd_context(pctx);
+ DBG("%.*s", len, string);
+
if (!ctx->batch)
return;
More information about the mesa-commit
mailing list