summaryrefslogtreecommitdiff
path: root/src/amd/common/ac_rgp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/common/ac_rgp.c')
-rw-r--r--src/amd/common/ac_rgp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/amd/common/ac_rgp.c b/src/amd/common/ac_rgp.c
index 2277058c413..7d0d48a91c0 100644
--- a/src/amd/common/ac_rgp.c
+++ b/src/amd/common/ac_rgp.c
@@ -819,10 +819,10 @@ static enum elf_gfxip_level ac_chip_class_to_elf_gfxip_level(enum chip_class chi
}
static void ac_sqtt_dump_data(struct radeon_info *rad_info,
- const struct ac_thread_trace *thread_trace,
- struct ac_thread_trace_data *thread_trace_data,
+ struct ac_thread_trace *thread_trace,
FILE *output)
{
+ struct ac_thread_trace_data *thread_trace_data = thread_trace->data;
struct sqtt_file_chunk_asic_info asic_info = {0};
struct sqtt_file_chunk_cpu_info cpu_info = {0};
struct sqtt_file_chunk_api_info api_info = {0};
@@ -948,8 +948,7 @@ static void ac_sqtt_dump_data(struct radeon_info *rad_info,
}
int ac_dump_rgp_capture(struct radeon_info *info,
- const struct ac_thread_trace *thread_trace,
- struct ac_thread_trace_data *thread_trace_data)
+ struct ac_thread_trace *thread_trace)
{
char filename[2048];
struct tm now;
@@ -967,7 +966,7 @@ int ac_dump_rgp_capture(struct radeon_info *info,
if (!f)
return -1;
- ac_sqtt_dump_data(info, thread_trace, thread_trace_data, f);
+ ac_sqtt_dump_data(info, thread_trace, f);
fprintf(stderr, "RGP capture saved to '%s'\n", filename);