From 08193cc56f7b973a23cbf4e7b9a2223f4a7f84a8 Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Wed, 15 Jul 2020 09:31:39 +0200 Subject: [PATCH] v3dv: avoid prime blit path when presenting WSI images This allows us to present WSI images directly rather than going through a blit path, improving performance. This improves vkQuake performance at 1080p by 10-20%. Part-of: --- src/broadcom/vulkan/v3dv_wsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_wsi.c b/src/broadcom/vulkan/v3dv_wsi.c index 77fe1d35563..7ef6bc6e7b3 100644 --- a/src/broadcom/vulkan/v3dv_wsi.c +++ b/src/broadcom/vulkan/v3dv_wsi.c @@ -45,7 +45,8 @@ v3dv_wsi_init(struct v3dv_physical_device *physical_device) v3dv_physical_device_to_handle(physical_device), v3dv_wsi_proc_addr, &physical_device->instance->alloc, - -1, NULL, false); + physical_device->display_fd, NULL, false); + if (result != VK_SUCCESS) return result;