mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 22:40:24 +01:00
radeonsi/sqtt: fix capturing indirect dispatches with SQTT
Ported from radv 083e7d3a92.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26774>
This commit is contained in:
parent
5139441c96
commit
c1f08608b8
1 changed files with 9 additions and 3 deletions
|
|
@ -790,9 +790,15 @@ static void si_emit_dispatch_packets(struct si_context *sctx, const struct pipe_
|
|||
threadgroups_per_cu = 2;
|
||||
|
||||
if (unlikely(sctx->sqtt_enabled)) {
|
||||
si_write_event_with_dims_marker(sctx, &sctx->gfx_cs,
|
||||
info->indirect ? EventCmdDispatchIndirect : EventCmdDispatch,
|
||||
info->grid[0], info->grid[1], info->grid[2]);
|
||||
if (info->indirect) {
|
||||
si_sqtt_write_event_marker(sctx, &sctx->gfx_cs,
|
||||
EventCmdDispatchIndirect,
|
||||
UINT_MAX, UINT_MAX, UINT_MAX);
|
||||
} else {
|
||||
si_write_event_with_dims_marker(sctx, &sctx->gfx_cs,
|
||||
EventCmdDispatch,
|
||||
info->grid[0], info->grid[1], info->grid[2]);
|
||||
}
|
||||
}
|
||||
|
||||
radeon_begin(cs);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue