mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
radeonsi/sqtt: retry a frame capture after reiszing the buffer
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36930>
This commit is contained in:
parent
cd5f77f6c2
commit
9171461565
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue