summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-01-25 01:56:45 +0100
committerBas Nieuwenhuizen <[email protected]>2019-02-06 22:36:19 +0100
commit3259e7b036f1708626e6036f6eb5e3f81260d7f8 (patch)
treed9cef35d2b7f415da9614900d2931f45a174e267
parent8a159502111fcc0b7bd68851dbd3f33cbb167fe1 (diff)
radv: Do not use the bo list for local buffers.
The kernel already does it for us. Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r--src/amd/vulkan/radv_device.c6
1 files changed, 6 insertions, 0 deletions
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;