winsys/amdgpu: disable VM_ALWAYS_VALID
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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: 8c91624614 ("winsys/amdgpu: use VM_ALWAYS_VALID for all VRAM and GTT allocations")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34547>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2025-04-16 11:27:54 +02:00 committed by Marge Bot
parent 3f7345a0ce
commit 555821ff93

View file

@ -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;