radeonsi: guard perfetto support with ifdef in si_draw

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33207>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2025-03-06 14:28:27 +01:00 committed by Marge Bot
parent 2e8232521d
commit dfa725cede

View file

@ -2085,8 +2085,10 @@ static void si_draw(struct pipe_context *ctx,
si_need_gfx_cs_space(sctx, num_draws, ALT_HIZ_LOGIC ? 8 : 0);
#ifdef HAVE_PERFETTO
if (unlikely(sctx->perfetto_enabled))
trace_si_begin_draw(&sctx->trace);
#endif
unsigned instance_count = info->instance_count;
@ -2437,10 +2439,12 @@ static void si_draw(struct pipe_context *ctx,
zstex->depth_cleared_level_mask &= ~BITFIELD_BIT(sctx->framebuffer.state.zsbuf->u.tex.level);
}
#ifdef HAVE_PERFETTO
if (unlikely(sctx->perfetto_enabled)) {
/* Just use the draw[0] vertex count for perfetto. */
trace_si_end_draw(&sctx->trace, draws[0].count);
}
#endif
DRAW_CLEANUP;
}