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