mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 15:50:11 +01:00
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:
parent
2d29dee889
commit
8c2bfa279d
2 changed files with 12 additions and 1 deletions
|
|
@ -53,6 +53,15 @@ static const struct vk_instance_extension_table panvk_instance_extensions = {
|
||||||
#endif
|
#endif
|
||||||
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
.KHR_wayland_surface = true,
|
.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
|
#endif
|
||||||
.EXT_debug_report = true,
|
.EXT_debug_report = true,
|
||||||
.EXT_debug_utils = true,
|
.EXT_debug_utils = true,
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,9 @@ enum panvk_debug_flags {
|
||||||
PANVK_DEBUG_NO_KNOWN_WARN = 1 << 7,
|
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
|
#define PANVK_USE_WSI_PLATFORM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue