v3dv: Enable (leased) direct display extensions.
Enable support for the following extensions, which are already supported by the driver and shared wsi code, and were just missing enables inside v3dv_device: VK_EXT_direct_mode_display, VK_EXT_acquire_drm_display, VK_EXT_acquire_xlib_display. Successfully tested on RPi 400, RaspberryPi OS 11, with X11 RandR output leasing to lease a RandR output and use it for direct display mode. Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21529>
This commit is contained in:
@@ -90,6 +90,8 @@ static const struct vk_instance_extension_table instance_extensions = {
|
||||
#ifdef VK_USE_PLATFORM_DISPLAY_KHR
|
||||
.KHR_display = true,
|
||||
.KHR_get_display_properties2 = true,
|
||||
.EXT_direct_mode_display = true,
|
||||
.EXT_acquire_drm_display = true,
|
||||
#endif
|
||||
.KHR_external_fence_capabilities = true,
|
||||
.KHR_external_memory_capabilities = true,
|
||||
@@ -108,6 +110,9 @@ static const struct vk_instance_extension_table instance_extensions = {
|
||||
#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,
|
||||
|
Reference in New Issue
Block a user