[Mesa-dev] [PATCH 14/16] radeonsi: emit string markers to log context
Nicolai Hähnle
nhaehnle at gmail.com
Wed Aug 16 11:05:44 UTC 2017
From: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
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 2b8f7f4f5c2..e2a121a82ab 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.11.0
More information about the mesa-dev
mailing list