From 6f01802be5920cf7e7a8e60ec20e120f5d5656a6 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:12:00 -0600 Subject: [PATCH] nvk/wsi: Use the common present implementation This enables WSI for NVK. Currently, it always gets the blit path and renders correctly on X11 and corrupts on Wayland. The problem is that we don't yet support linear images so wayland gets tiled and is wrong. The thing that saves us for X11 is the lack of VK_EXT_pci_bus_info. Part-of: --- src/nouveau/vulkan/nvk_wsi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/nouveau/vulkan/nvk_wsi.c b/src/nouveau/vulkan/nvk_wsi.c index ab7c208de02..a3292164926 100644 --- a/src/nouveau/vulkan/nvk_wsi.c +++ b/src/nouveau/vulkan/nvk_wsi.c @@ -36,9 +36,3 @@ nvk_finish_wsi(struct nvk_physical_device *pdev) pdev->vk.wsi_device = NULL; wsi_device_finish(&pdev->wsi_device, &pdev->instance->vk.alloc); } - -VKAPI_ATTR VkResult VKAPI_CALL -nvk_QueuePresentKHR(VkQueue _queue, const VkPresentInfoKHR *pPresentInfo) -{ - return VK_NOT_READY; -}