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: 3e7f6c9aeb ("tu: implement wsi hook to decide if we can present directly on device")
Signed-off-by: Valentine Burley <valentine.burley@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29627>
This commit is contained in:
Valentine Burley 2024-08-07 23:41:39 +02:00 committed by Marge Bot
parent 47289ebc8d
commit 367191ff63

View file

@ -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