freedreno: Add string-marker debug trace

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>
This commit is contained in:
Rob Clark 2021-06-08 15:16:04 -07:00
parent 256938e2a1
commit 93b540c72e
1 changed files with 3 additions and 1 deletions

View 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;