From: Marek Olšák Date: Mon, 1 Apr 2019 16:29:43 +0000 (-0400) Subject: radeonsi: don't use PFP_SYNC_ME with compute-only contexts X-Git-Tag: upstream/19.3.0~7626 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7be26976b8e8bc34fa7d55550014197ed2af488f;p=platform%2Fupstream%2Fmesa.git radeonsi: don't use PFP_SYNC_ME with compute-only contexts Compute rings don't have PFP. Fixes: a1378639ab1 "radeonsi: always use compute rings for clover on CI and newer (v2)" Reviewed-by: Samuel Pitoiset Tested-by: Jan Vesely Tested-by: Dieter Nützel --- diff --git a/src/gallium/drivers/radeonsi/si_cp_dma.c b/src/gallium/drivers/radeonsi/si_cp_dma.c index 5993369..f349325 100644 --- a/src/gallium/drivers/radeonsi/si_cp_dma.c +++ b/src/gallium/drivers/radeonsi/si_cp_dma.c @@ -131,7 +131,7 @@ static void si_emit_cp_dma(struct si_context *sctx, struct radeon_cmdbuf *cs, * indices. If we wanted to execute CP DMA in PFP, this packet * should precede it. */ - if (flags & CP_DMA_PFP_SYNC_ME) { + if (sctx->has_graphics && flags & CP_DMA_PFP_SYNC_ME) { radeon_emit(cs, PKT3(PKT3_PFP_SYNC_ME, 0, 0)); radeon_emit(cs, 0); }