mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
pvr: enable KHR_wayland_surface
Just expose the extension to enable Wayland WSI. The current use case for this is being able to run Wayland clients on e.g. an offscreen compositor. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37721>
This commit is contained in:
parent
f367de85dd
commit
48f3bcdd02
4 changed files with 7 additions and 2 deletions
|
|
@ -582,7 +582,7 @@ Khronos extensions that are not part of any Vulkan version:
|
|||
VK_KHR_swapchain DONE (anv, dzn, hasvk, hk, lvp, nvk, panvk, pvr, radv, tu, v3dv, vn)
|
||||
VK_KHR_swapchain_mutable_format DONE (anv, hasvk, hk, lvp, nvk, pvr, radv, tu, v3dv, vn)
|
||||
VK_KHR_unified_image_layouts DONE (lvp, nvk, panvk, radv/gfx11+, tu)
|
||||
VK_KHR_wayland_surface DONE (anv, dzn, hk, lvp, nvk, panvk, radv, tu, v3dv, vn)
|
||||
VK_KHR_wayland_surface DONE (anv, dzn, hk, lvp, nvk, panvk, pvr, radv, tu, v3dv, vn)
|
||||
VK_KHR_workgroup_memory_explicit_layout DONE (anv, hk, lvp, nvk, hasvk, radv, tu, v3dv, vn)
|
||||
VK_KHR_win32_keyed_mutex not started
|
||||
VK_KHR_win32_surface DONE (dzn, lvp)
|
||||
|
|
|
|||
|
|
@ -85,3 +85,4 @@ VK_EXT_map_memory_placed on pvr
|
|||
VK_KHR_device_group on pvr
|
||||
VK_KHR_buffer_device_address on pvr
|
||||
GL_EXT_mesh_shader on zink
|
||||
VK_KHR_wayland_surface on pvr
|
||||
|
|
|
|||
|
|
@ -161,6 +161,9 @@ static const struct vk_instance_extension_table pvr_instance_extensions = {
|
|||
.KHR_get_physical_device_properties2 = true,
|
||||
.KHR_get_surface_capabilities2 = PVR_USE_WSI_PLATFORM,
|
||||
.KHR_surface = PVR_USE_WSI_PLATFORM,
|
||||
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||
.KHR_wayland_surface = true,
|
||||
#endif
|
||||
#ifndef VK_USE_PLATFORM_WIN32_KHR
|
||||
.EXT_headless_surface = PVR_USE_WSI_PLATFORM && false,
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -36,7 +36,8 @@
|
|||
# define PVR_USE_WSI_PLATFORM_DISPLAY false
|
||||
#endif
|
||||
|
||||
#if PVR_USE_WSI_PLATFORM_DISPLAY
|
||||
#if defined(VK_USE_PLATFORM_DISPLAY_KHR) || \
|
||||
defined(VK_USE_PLATFORM_WAYLAND_KHR)
|
||||
# define PVR_USE_WSI_PLATFORM true
|
||||
#else
|
||||
# define PVR_USE_WSI_PLATFORM false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue