From c44b20e8d6666c3100ca515be3153ae0c54b6e6b Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 14 Feb 2024 12:38:22 +0100 Subject: [PATCH] radeonsi/sqtt: add AMD_THREAD_TRACE_INSTRUCTION_TIMING MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To control if instruction timing should be enabled (on by default). Reviewed-by: Marek Olšák Reviewed-by: Samuel Pitoiset Part-of: --- src/gallium/drivers/radeonsi/si_sqtt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_sqtt.c b/src/gallium/drivers/radeonsi/si_sqtt.c index efdd759bc3a..5df16f9e07d 100644 --- a/src/gallium/drivers/radeonsi/si_sqtt.c +++ b/src/gallium/drivers/radeonsi/si_sqtt.c @@ -331,7 +331,8 @@ bool si_init_sqtt(struct si_context *sctx) /* Default buffer size set to 32MB per SE. */ sctx->sqtt->buffer_size = debug_get_num_option("AMD_THREAD_TRACE_BUFFER_SIZE", 32 * 1024) * 1024; - sctx->sqtt->instruction_timing_enabled = false; + sctx->sqtt->instruction_timing_enabled = + debug_get_bool_option("AMD_THREAD_TRACE_INSTRUCTION_TIMING", true); sctx->sqtt->start_frame = 10; const char *trigger = getenv("AMD_THREAD_TRACE_TRIGGER");