aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/egl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr/render/egl.h')
-rw-r--r--include/wlr/render/egl.h9
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