From 6f19295647fe9a1c0afec96eebd3947f1a52ec2b Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Wed, 20 Jan 2021 21:14:04 -0500 Subject: render/egl: initialize wlr_egl with EGL_PLATFORM_DEVICE_EXT Uses the EXT_device_query extension to get the EGL device matching the requested DRM file descriptor. If the extension is not supported or no device is found, the EGL device will be retrieved using GBM. Depends on the EGL_EXT_device_enumeration to get the list of EGL devices. --- include/wlr/render/egl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 3a09ba97..903b70a3 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -44,6 +44,11 @@ struct wlr_egl { // Device extensions bool EXT_device_drm; bool EXT_device_drm_render_node; + + // Client extensions + bool EXT_device_query; + bool KHR_platform_gbm; + bool EXT_platform_device; } exts; struct { @@ -56,6 +61,7 @@ struct wlr_egl { PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR; PFNEGLQUERYDISPLAYATTRIBEXTPROC eglQueryDisplayAttribEXT; PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT; + PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT; } procs; struct wlr_drm_format_set dmabuf_texture_formats; -- cgit v1.2.3