From 5a5f3fe561b1235ab1a52b99d7d5569f50d5dbdd Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 15 Dec 2022 15:34:35 +0100 Subject: [PATCH] ac/sqtt: bump the maximum number of traces to 6 for GFX11 GFX11 can have more than 4 SEs. I think it would be better to allocate an array but that's for later. Signed-off-by: Samuel Pitoiset Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/amd/common/ac_sqtt.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/amd/common/ac_sqtt.h b/src/amd/common/ac_sqtt.h index b9aadbf0735..7ca3428954e 100644 --- a/src/amd/common/ac_sqtt.h +++ b/src/amd/common/ac_sqtt.h @@ -75,10 +75,12 @@ struct ac_thread_trace_se { uint32_t compute_unit; }; +#define SQTT_MAX_TRACES 6 + struct ac_thread_trace { struct ac_thread_trace_data *data; uint32_t num_traces; - struct ac_thread_trace_se traces[4]; + struct ac_thread_trace_se traces[SQTT_MAX_TRACES]; }; uint64_t