mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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:
parent
365fda834e
commit
c44b20e8d6
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue