mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 12:30:19 +01:00
radeonsi: initialize perfetto in the right place
Compute contexts don't execute the second half of the function.
Fixes: a164e147e9 - radeonsi: Add perfetto support in radeonsi
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10043
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Tested-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25873>
This commit is contained in:
parent
57decad976
commit
276b9b13cf
1 changed files with 2 additions and 1 deletions
|
|
@ -369,6 +369,8 @@ void si_begin_new_gfx_cs(struct si_context *ctx, bool first_cs)
|
|||
if (!first_cs)
|
||||
u_trace_fini(&ctx->trace);
|
||||
|
||||
u_trace_init(&ctx->trace, &ctx->ds.trace_context);
|
||||
|
||||
if (unlikely(radeon_uses_secure_bos(ctx->ws))) {
|
||||
is_secure = ctx->ws->cs_is_secure(&ctx->gfx_cs);
|
||||
|
||||
|
|
@ -583,7 +585,6 @@ void si_begin_new_gfx_cs(struct si_context *ctx, bool first_cs)
|
|||
assert(!ctx->gfx_cs.prev_dw);
|
||||
ctx->initial_gfx_cs_size = ctx->gfx_cs.current.cdw;
|
||||
|
||||
u_trace_init(&ctx->trace, &ctx->ds.trace_context);
|
||||
/* All buffer references are removed on a flush, so si_check_needs_implicit_sync
|
||||
* cannot determine if si_make_CB_shader_coherent() needs to be called.
|
||||
* ctx->force_cb_shader_coherent will be cleared by the first call to
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue