aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-01-02 17:29:01 -0500
committerMarek Olšák <[email protected]>2020-01-06 15:38:36 -0500
commite5167a9276de1f383888714b41d3a9be2b9c1da9 (patch)
tree939bd37aa34ff9d5c9ac9a43876f3fa2e8b36b51 /src/gallium
parent991328498b9b1fa2937c61546bf1f3f4e5949f93 (diff)
radeonsi: disable SDMA on gfx8 to fix corruption on RX 580
Closes: #1399 Closes: #1889 Cc: 19.2 19.3 <[email protected]> Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-By: Timur Kristóf <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 3f84725f8f2..2e3232d1cf0 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -489,6 +489,11 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen,
if (sscreen->info.num_rings[RING_DMA] &&
!(sscreen->debug_flags & DBG(NO_SDMA)) &&
+ /* SDMA causes corruption on RX 580:
+ * https://gitlab.freedesktop.org/mesa/mesa/issues/1399
+ * https://gitlab.freedesktop.org/mesa/mesa/issues/1889
+ */
+ (sctx->chip_class != GFX8 || sscreen->debug_flags & DBG(FORCE_SDMA)) &&
/* SDMA timeouts sometimes on gfx10 so disable it for now. See:
* https://bugs.freedesktop.org/show_bug.cgi?id=111481
* https://gitlab.freedesktop.org/mesa/mesa/issues/1907