Mesa (master): radv: only make the WSI images resident if the global BO list is used

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 12 19:21:20 UTC 2021


Module: Mesa
Branch: master
Commit: 7379ca4043e94570dbf82af4a46c003ba4f51c70
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7379ca4043e94570dbf82af4a46c003ba4f51c70

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Feb 12 10:06:48 2021 +0100

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 <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9006>

---

 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



More information about the mesa-commit mailing list