freedreno: Add string-marker debug trace
authorRob Clark <robdclark@chromium.org>
Tue, 8 Jun 2021 22:16:04 +0000 (15:16 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 10 Jun 2021 02:08:58 +0000 (19:08 -0700)
This is useful in combination with --markers arg to apitrace.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11200>

src/gallium/drivers/freedreno/freedreno_context.c

index 4063d7a..1bb7275 100644 (file)
@@ -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;