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:
committed by
Marge Bot
parent
5139441c96
commit
c1f08608b8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user