radeonsi: emit string markers to log context
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 15 Aug 2017 13:45:49 +0000 (15:45 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 22 Aug 2017 07:53:34 +0000 (09:53 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 93d43e697da94d39084747f29197d3b97f132ea3..a2b37cbab0c4ba258f08fb47833eb0bd34267f78 100644 (file)
@@ -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