From 56a450e984226640391a8bdef29e16be38fd75cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 20 May 2021 05:05:15 -0400 Subject: [PATCH] radeonsi: disable DFSM on gfx9 by default because it decreases performance a lot Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_pipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 89c11438189..8d616317f0c 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -1235,7 +1235,8 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws, /* DFSM is not supported on GFX 10.3 and not beneficial on Navi1x. */ } else if (sscreen->info.chip_class == GFX9) { sscreen->dpbb_allowed = !sscreen->info.has_dedicated_vram; - sscreen->dfsm_allowed = !sscreen->info.has_dedicated_vram; + /* DFSM reduces the Raven2 draw prim rate by ~43%. Disable it. */ + sscreen->dfsm_allowed = false; } /* Process DPBB enable flags. */