From 2d64e8d33378da571aa697ea73fef0dd440615d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 7 Aug 2024 00:00:47 -0400 Subject: [PATCH] radeonsi: use the correct cs for SQTT barriers for gfx9 Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_gfx_cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_gfx_cs.c b/src/gallium/drivers/radeonsi/si_gfx_cs.c index 8703b4d1bac..5c558aee0a3 100644 --- a/src/gallium/drivers/radeonsi/si_gfx_cs.c +++ b/src/gallium/drivers/radeonsi/si_gfx_cs.c @@ -1074,13 +1074,13 @@ void gfx6_emit_cache_flush(struct si_context *sctx, struct radeon_cmdbuf *cs) wait_mem_scratch, va, sctx->wait_mem_number, SI_NOT_QUERY); if (unlikely(sctx->sqtt_enabled)) { - si_sqtt_describe_barrier_start(sctx, &sctx->gfx_cs); + si_sqtt_describe_barrier_start(sctx, cs); } si_cp_wait_mem(sctx, cs, va, sctx->wait_mem_number, 0xffffffff, WAIT_REG_MEM_EQUAL); if (unlikely(sctx->sqtt_enabled)) { - si_sqtt_describe_barrier_end(sctx, &sctx->gfx_cs, sctx->flags); + si_sqtt_describe_barrier_end(sctx, cs, sctx->flags); } }