aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-01-20 21:14:04 -0500
committerSimon Ser <contact@emersion.fr>2021-07-27 20:45:53 +0200
commit6f19295647fe9a1c0afec96eebd3947f1a52ec2b (patch)
tree0368a3fb4860216ae5c4c4cc8d33d0765f678258 /include/wlr/render
parent7667ab73bdff671aad29452f33cc2e0e17c73d9e (diff)
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.
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/egl.h6
1 files changed, 6 insertions, 0 deletions
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;