summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2021-06-03 09:07:54 +0200
committerMarge Bot <eric+marge@anholt.net>2021-06-03 15:39:34 +0000
commitaff92f50c6f19ea36544253e254edd97acabe1eb (patch)
treee78cea745a8092f24c9e18f06f063627d68f524c /src/gallium
parent416496a0c43cc3647c981dd8739fef1230ac59ac (diff)
ac: add ac_thread_trace::data
Instead of passing two different structs to ac_dump_rgp_capture(). Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11156>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_sqtt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_sqtt.c b/src/gallium/drivers/radeonsi/si_sqtt.c
index b01bf2c3753..76a24b58a42 100644
--- a/src/gallium/drivers/radeonsi/si_sqtt.c
+++ b/src/gallium/drivers/radeonsi/si_sqtt.c
@@ -536,6 +536,7 @@ si_get_thread_trace(struct si_context *sctx,
thread_trace->traces[se] = thread_trace_se;
}
+ thread_trace->data = sctx->thread_trace;
return true;
}
@@ -696,7 +697,7 @@ si_handle_thread_trace(struct si_context *sctx, struct radeon_cmdbuf *rcs)
/* Wait for SQTT to finish and read back the bo */
if (sctx->ws->fence_wait(sctx->ws, sctx->last_sqtt_fence, PIPE_TIMEOUT_INFINITE) &&
si_get_thread_trace(sctx, &thread_trace)) {
- ac_dump_rgp_capture(&sctx->screen->info, &thread_trace, sctx->thread_trace);
+ ac_dump_rgp_capture(&sctx->screen->info, &thread_trace);
} else {
fprintf(stderr, "Failed to read the trace\n");
}