Commit 3259e7b0 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen
Browse files

radv: Do not use the bo list for local buffers.



The kernel already does it for us.
Reviewed-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
parent 8a159502
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment