From bf5cfb64868a50b84df82d2df36585f95b2c492f Mon Sep 17 00:00:00 2001 From: Mario Kleiner Date: Sat, 25 Feb 2023 11:44:34 +0100 Subject: [PATCH] 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 Reviewed-by: Iago Toral Quiroga Part-of: --- src/broadcom/vulkan/v3dv_device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index 6fedb663238..c0218672c4a 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -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,