render: use dev_t when creating renderer

We don't actually need to open a DRM node here. We just need a way
to reference a DRM node. A dev_t is better suited for this.
This commit is contained in:
Simon Ser 2023-10-04 15:05:19 +02:00
parent 986a2d9f66
commit 03c344de59
9 changed files with 86 additions and 79 deletions

View file

@ -53,11 +53,11 @@ struct wlr_egl_context {
};
/**
* Initializes an EGL context for the given DRM FD.
* Initializes an EGL context for the given DRM device ID.
*
* Will attempt to load all possibly required API functions.
*/
struct wlr_egl *wlr_egl_create_with_drm_fd(int drm_fd);
struct wlr_egl *wlr_egl_create_with_drm_dev_id(dev_t dev_id);
/**
* Frees all related EGL resources, makes the context not-current and