From 367191ff632e00b1822c53ecead8c48e18b73535 Mon Sep 17 00:00:00 2001 From: Valentine Burley Date: Wed, 7 Aug 2024 23:41:39 +0200 Subject: [PATCH] tu: Always report that we can present on kgsl Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8637 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9240 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9365 Fixes: 3e7f6c9aebf ("tu: implement wsi hook to decide if we can present directly on device") Signed-off-by: Valentine Burley Part-of: --- src/freedreno/vulkan/tu_wsi.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/freedreno/vulkan/tu_wsi.cc b/src/freedreno/vulkan/tu_wsi.cc index 1f3d7e2ecc4..57cf9048b07 100644 --- a/src/freedreno/vulkan/tu_wsi.cc +++ b/src/freedreno/vulkan/tu_wsi.cc @@ -24,9 +24,12 @@ tu_wsi_proc_addr(VkPhysicalDevice physicalDevice, const char *pName) static bool tu_wsi_can_present_on_device(VkPhysicalDevice physicalDevice, int fd) { +#ifdef HAVE_LIBDRM VK_FROM_HANDLE(tu_physical_device, pdevice, physicalDevice); - return wsi_common_drm_devices_equal(fd, pdevice->local_fd); +#else + return true; +#endif } VkResult