[Mesa-dev] [PATCH] radeonsi: disable SDMA on Carrizo

Marek Olšák maraeo at gmail.com
Wed Aug 24 21:39:41 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

Cc: 12.0 <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/radeonsi/cik_sdma.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/cik_sdma.c b/src/gallium/drivers/radeonsi/cik_sdma.c
index 2eade50..e1fd050 100644
--- a/src/gallium/drivers/radeonsi/cik_sdma.c
+++ b/src/gallium/drivers/radeonsi/cik_sdma.c
@@ -509,20 +509,26 @@ static void cik_sdma_copy(struct pipe_context *ctx,
 	struct si_context *sctx = (struct si_context *)ctx;
 
 	if (!sctx->b.dma.cs)
 		goto fallback;
 
 	if (dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) {
 		cik_sdma_copy_buffer(sctx, dst, src, dstx, src_box->x, src_box->width);
 		return;
 	}
 
+	/* Carrizo SDMA texture copying is very broken for some users.
+	 * https://bugs.freedesktop.org/show_bug.cgi?id=97029
+	 */
+	if (sctx->b.family == CHIP_CARRIZO)
+		goto fallback;
+
 	if (cik_sdma_copy_texture(sctx, dst, dst_level, dstx, dsty, dstz,
 				  src, src_level, src_box))
 		return;
 
 fallback:
 	si_resource_copy_region(ctx, dst, dst_level, dstx, dsty, dstz,
 				src, src_level, src_box);
 }
 
 void cik_init_sdma_functions(struct si_context *sctx)
-- 
2.7.4



More information about the mesa-dev mailing list