From 555821ff93118d4a6ea441127cd0427a95743d47 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 16 Apr 2025 11:27:54 +0200 Subject: [PATCH] winsys/amdgpu: disable VM_ALWAYS_VALID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The referenced commit has been identified as the root cause of graphic artifacts / hangs on some APUs. For now disable AMDGPU_GEM_CREATE_VM_ALWAYS_VALID on all chips except when user queues are used. See https://gitlab.freedesktop.org/mesa/mesa/-/issues/12809. Fixes: 8c91624614c ("winsys/amdgpu: use VM_ALWAYS_VALID for all VRAM and GTT allocations") Reviewed-by: Marek Olšák Part-of: --- src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 792f2540069..d825b525d2c 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -62,7 +62,7 @@ static bool do_winsys_init(struct amdgpu_winsys *aws, simple_mtx_init(&aws->queues[i].userq.lock, mtx_plain); /* TODO: Enable this once the kernel handles it efficiently. */ - if (aws->info.has_dedicated_vram && !aws->info.use_userq) + if (!aws->info.use_userq) aws->info.has_local_buffers = false; return true;