mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-08 13:29:45 -05:00
render: add wlr_egl_create_from_drm_fd function
This function relies on the extension EGL_WL_bind_wayland_display being present. If not, the creation of `wlr_egl` will fallback on using GBM
This commit is contained in:
parent
84dea55b20
commit
074e36deb6
4 changed files with 173 additions and 49 deletions
|
|
@ -51,6 +51,9 @@ struct wlr_egl {
|
|||
|
||||
// Device extensions
|
||||
bool device_drm_ext;
|
||||
|
||||
// Client extensions
|
||||
bool device_query_ext;
|
||||
} exts;
|
||||
|
||||
struct {
|
||||
|
|
@ -65,6 +68,7 @@ struct wlr_egl {
|
|||
PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR;
|
||||
PFNEGLQUERYDISPLAYATTRIBEXTPROC eglQueryDisplayAttribEXT;
|
||||
PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT;
|
||||
PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT;
|
||||
} procs;
|
||||
|
||||
struct wl_display *wl_display;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue