From 7379ca4043e94570dbf82af4a46c003ba4f51c70 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 12 Feb 2021 10:06:48 +0100 Subject: [PATCH] radv: only make the WSI images resident if the global BO list is used Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4270 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4286 Fixes: 96b03aaa175 ("radv: use the global BO list from the winsys") Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_wsi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c index 19bd6c1721f..423e87bb48a 100644 --- a/src/amd/vulkan/radv_wsi.c +++ b/src/amd/vulkan/radv_wsi.c @@ -44,7 +44,9 @@ radv_wsi_set_memory_ownership(VkDevice _device, RADV_FROM_HANDLE(radv_device, device, _device); RADV_FROM_HANDLE(radv_device_memory, mem, _mem); - device->ws->buffer_make_resident(device->ws, mem->bo, ownership); + if (device->use_global_bo_list) { + device->ws->buffer_make_resident(device->ws, mem->bo, ownership); + } } VkResult