From f4c1d5a76d1eddc0b4097aaca4baad30a8500913 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Tue, 15 Aug 2017 15:45:49 +0200 Subject: [PATCH] radeonsi: emit string markers to log context MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 93d43e697da..a2b37cbab0c 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -134,6 +134,9 @@ static void si_emit_string_marker(struct pipe_context *ctx, struct si_context *sctx = (struct si_context *)ctx; dd_parse_apitrace_marker(string, len, &sctx->apitrace_call_number); + + if (sctx->b.log) + u_log_printf(sctx->b.log, "\nString marker: %*s\n", len, string); } static LLVMTargetMachineRef -- 2.30.2