radv: enable global BO list if vm_always_valid is supported

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38529>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2025-10-22 15:44:15 +02:00 committed by Marge Bot
parent cf4c55a20f
commit 9e76f5f2a2

View file

@ -1243,7 +1243,7 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
/* Enable the global BO list by default. */
/* TODO: Remove the per cmdbuf BO list tracking after few Mesa releases if no blockers. */
device->use_global_bo_list = !pdev->info.is_virtio;
device->use_global_bo_list = pdev->info.has_vm_always_valid;
/* Disable it for debugging purposes if no features require it. */
if (instance->debug_flags & RADV_DEBUG_NO_BO_LIST) {