diff options
author | Marek Olšák <marek.olsak@amd.com> | 2020-05-04 18:25:28 -0400 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2020-08-05 22:23:21 +0200 |
commit | d03bf3ece563b61d89622263508a504486b3b956 (patch) | |
tree | 5201777e385bf4d9c28d428aa0ba3a7010357880 /src | |
parent | 65a6b36802617e780077cae586ab83c38e4ce5bb (diff) |
radeonsi: disable SDMA on gfx9
Fixes: 9680a754895 "radeonsi/gfx9: enable SDMA buffer copying & clearing"
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4895>
(cherry picked from commit 07a49bf59766b7c40d35608a98bd4a5796dcc2fe)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 97989a275e3..e0420934c27 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -475,6 +475,14 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, unsign * https://gitlab.freedesktop.org/mesa/mesa/-/issues/1889 */ (sctx->chip_class != GFX8 || sscreen->debug_flags & DBG(FORCE_SDMA)) && + /* SDMA causes corruption on gfx9 APUs: + * https://gitlab.freedesktop.org/mesa/mesa/-/issues/2814 + * + * While we could keep buffer copies and clears enabled, let's disable + * everything, because neither gfx8 nor gfx10 enable SDMA, and it's not + * easy to test. + */ + (sctx->chip_class != GFX9 || 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 |