mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
2e8232521d
commit
dfa725cede
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
si_need_gfx_cs_space(sctx, num_draws, ALT_HIZ_LOGIC ? 8 : 0);
|
||||||
|
|
||||||
|
#ifdef HAVE_PERFETTO
|
||||||
if (unlikely(sctx->perfetto_enabled))
|
if (unlikely(sctx->perfetto_enabled))
|
||||||
trace_si_begin_draw(&sctx->trace);
|
trace_si_begin_draw(&sctx->trace);
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned instance_count = info->instance_count;
|
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);
|
zstex->depth_cleared_level_mask &= ~BITFIELD_BIT(sctx->framebuffer.state.zsbuf->u.tex.level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_PERFETTO
|
||||||
if (unlikely(sctx->perfetto_enabled)) {
|
if (unlikely(sctx->perfetto_enabled)) {
|
||||||
/* Just use the draw[0] vertex count for perfetto. */
|
/* Just use the draw[0] vertex count for perfetto. */
|
||||||
trace_si_end_draw(&sctx->trace, draws[0].count);
|
trace_si_end_draw(&sctx->trace, draws[0].count);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
DRAW_CLEANUP;
|
DRAW_CLEANUP;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue