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:
parent
256938e2a1
commit
93b540c72e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue