From 91714615655bf716e256d41a28c320e09f926a9e Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 22 Aug 2025 11:31:22 +0200 Subject: [PATCH] radeonsi/sqtt: retry a frame capture after reiszing the buffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_sqtt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_sqtt.c b/src/gallium/drivers/radeonsi/si_sqtt.c index 80e0991aed3..818736dbdca 100644 --- a/src/gallium/drivers/radeonsi/si_sqtt.c +++ b/src/gallium/drivers/radeonsi/si_sqtt.c @@ -491,10 +491,13 @@ void si_handle_sqtt(struct si_context *sctx, struct radeon_cmdbuf *rcs) if (sctx->spm.ptr) sctx->ws->buffer_unmap(sctx->ws, sctx->spm.bo); } else { - mesa_loge("Failed to read the trace"); if (!sctx->sqtt->trigger_file) { sctx->sqtt->start_frame = num_frames + 10; } + + /* Restart SQTT to try to capture the next frame. */ + si_begin_sqtt(sctx, rcs); + sctx->sqtt_enabled = true; } }