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:
parent
44a76ba16d
commit
7379ca4043
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue