radeonsi: increase task wait count when emit barrier

It will be waited by task queue too.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38044>
This commit is contained in:
Qiang Yu 2025-09-12 17:19:15 +08:00 committed by Marge Bot
parent c0f6e97d6c
commit 9a31151436

View file

@ -289,6 +289,10 @@ static void gfx10_emit_barrier(struct si_context *ctx, struct radeon_cmdbuf *cs)
} else if (flags & SI_BARRIER_PFP_SYNC_ME) {
si_cp_pfp_sync_me(cs);
}
/* Increase task wait count if not done before. */
if (ctx->task_wait_count == ctx->last_task_wait_count)
ctx->task_wait_count++;
}
static void gfx6_emit_barrier(struct si_context *sctx, struct radeon_cmdbuf *cs)