panvk: support x11 wsi

This seems to be enough to get XCB working. From looking at what other
drivers does, it seems likely that XLib will just work, so let's enable
that as well.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29878>
This commit is contained in:
Erik Faye-Lund
2024-06-17 16:26:34 +02:00
committed by Marge Bot
parent 2d29dee889
commit 8c2bfa279d
2 changed files with 12 additions and 1 deletions

View File

@@ -53,6 +53,15 @@ static const struct vk_instance_extension_table panvk_instance_extensions = {
#endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
.KHR_wayland_surface = true,
#endif
#ifdef VK_USE_PLATFORM_XCB_KHR
.KHR_xcb_surface = true,
#endif
#ifdef VK_USE_PLATFORM_XLIB_KHR
.KHR_xlib_surface = true,
#endif
#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT
.EXT_acquire_xlib_display = true,
#endif
.EXT_debug_report = true,
.EXT_debug_utils = true,

View File

@@ -23,7 +23,9 @@ enum panvk_debug_flags {
PANVK_DEBUG_NO_KNOWN_WARN = 1 << 7,
};
#if defined(VK_USE_PLATFORM_WAYLAND_KHR)
#if defined(VK_USE_PLATFORM_WAYLAND_KHR) || \
defined(VK_USE_PLATFORM_XCB_KHR) || \
defined(VK_USE_PLATFORM_XLIB_KHR)
#define PANVK_USE_WSI_PLATFORM
#endif