From: Nicolai Hähnle Date: Fri, 21 Sep 2018 16:05:19 +0000 (+0200) Subject: radeonsi: don't set RAW_WAIT for CP DMA clears X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d58dcc3cff2f491f7c57c5c5c9d4b28e7f842b2;p=mesa.git radeonsi: don't set RAW_WAIT for CP DMA clears There is never a read-after-write hazard because the command doesn't read. Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_cp_dma.c b/src/gallium/drivers/radeonsi/si_cp_dma.c index 33220d9f0fa..80673f3f5f2 100644 --- a/src/gallium/drivers/radeonsi/si_cp_dma.c +++ b/src/gallium/drivers/radeonsi/si_cp_dma.c @@ -189,7 +189,8 @@ static void si_cp_dma_prepare(struct si_context *sctx, struct pipe_resource *dst if (!(user_flags & SI_CPDMA_SKIP_GFX_SYNC) && sctx->flags) si_emit_cache_flush(sctx); - if (!(user_flags & SI_CPDMA_SKIP_SYNC_BEFORE) && *is_first) + if (!(user_flags & SI_CPDMA_SKIP_SYNC_BEFORE) && *is_first && + !(*packet_flags & CP_DMA_CLEAR)) *packet_flags |= CP_DMA_RAW_WAIT; *is_first = false;