radeonsi/sqtt: add AMD_THREAD_TRACE_INSTRUCTION_TIMING

To control if instruction timing should be enabled (on by default).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25397>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2024-02-14 12:38:22 +01:00
parent 365fda834e
commit c44b20e8d6

View file

@ -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");