diff options
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 6 |
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; |