From 68e1cd631c06706ca1a3caf5575b57a8b1e94cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 18 Feb 2023 04:51:28 -0500 Subject: [PATCH] radeonsi: disable Smart Access Memory because CPU access has large overhead It will be remove completely in the next commit. Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8176 Cc: mesa-stable Acked-by: Pierre-Eric Pelloux-Prayer Part-of: (cherry picked from commit d8b17b17526b46d69e4102a883ba451e7f1db148) --- .pick_status.json | 2 +- src/gallium/drivers/radeonsi/si_pipe.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 8578b8cece6..0d565538599 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -6142,7 +6142,7 @@ "description": "radeonsi: disable Smart Access Memory because CPU access has large overhead", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 999c0a3a888..971023f9bc6 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -1141,6 +1141,8 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws, sscreen->options.enable_sam, sscreen->options.disable_sam); + sscreen->info.smart_access_memory = false; /* VRAM has slower CPU access */ + if (sscreen->info.gfx_level >= GFX9) { sscreen->se_tile_repeat = 32 * sscreen->info.max_se; } else {