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: 96b03aaa17 ("radv: use the global BO list from the winsys")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9006>
This commit is contained in:
Samuel Pitoiset 2021-02-12 10:06:48 +01:00 committed by Marge Bot
parent 44a76ba16d
commit 7379ca4043
1 changed files with 3 additions and 1 deletions

View File

@ -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