diff options
author | Simon Ser <contact@emersion.fr> | 2020-06-10 14:26:39 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-15 22:54:07 +0100 |
commit | c8d95acc37a1f3aa74538e4b9c688c2ed98227c6 (patch) | |
tree | e4dd7a5c10ee973e0538600e1673dcfb2ce364f1 /include/wlr/render | |
parent | eef8b3dde8cda28a97ad36a602554e0ecf9819dd (diff) |
render/egl: introduce wlr_egl_dup_drm_fd
Diffstat (limited to 'include/wlr/render')
-rw-r--r-- | include/wlr/render/egl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index b2393177..48382f6d 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -45,8 +45,10 @@ struct wlr_egl { EGLDisplay display; EGLConfig config; EGLContext context; + EGLDeviceEXT device; // may be EGL_NO_DEVICE_EXT struct { + // Display extensions bool bind_wayland_display_wl; bool buffer_age_ext; bool image_base_khr; @@ -54,6 +56,9 @@ struct wlr_egl { bool image_dmabuf_import_ext; bool image_dmabuf_import_modifiers_ext; bool swap_buffers_with_damage; + + // Device extensions + bool device_drm_ext; } exts; struct { @@ -70,6 +75,8 @@ struct wlr_egl { PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC eglExportDMABUFImageQueryMESA; PFNEGLEXPORTDMABUFIMAGEMESAPROC eglExportDMABUFImageMESA; PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR; + PFNEGLQUERYDISPLAYATTRIBEXTPROC eglQueryDisplayAttribEXT; + PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT; } procs; struct wl_display *wl_display; @@ -164,4 +171,6 @@ bool wlr_egl_swap_buffers(struct wlr_egl *egl, EGLSurface surface, bool wlr_egl_destroy_surface(struct wlr_egl *egl, EGLSurface surface); +int wlr_egl_dup_drm_fd(struct wlr_egl *egl); + #endif |