From 3259e7b036f1708626e6036f6eb5e3f81260d7f8 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Fri, 25 Jan 2019 01:56:45 +0100 Subject: [PATCH] radv: Do not use the bo list for local buffers. The kernel already does it for us. Reviewed-by: Samuel Pitoiset --- src/amd/vulkan/radv_device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index b8ef93d0cd2..5202d83a418 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1551,6 +1551,9 @@ static VkResult radv_bo_list_add(struct radv_device *device, { struct radv_bo_list *bo_list = &device->bo_list; + if (bo->is_local) + return VK_SUCCESS; + if (unlikely(!device->use_global_bo_list)) return VK_SUCCESS; @@ -1578,6 +1581,9 @@ static void radv_bo_list_remove(struct radv_device *device, { struct radv_bo_list *bo_list = &device->bo_list; + if (bo->is_local) + return; + if (unlikely(!device->use_global_bo_list)) return; -- 2.30.2