wip: backend/drm: add libliftoff interface

TODO:

- Make it work on multi-output setups
- Make it handle VRR and gamma
This commit is contained in:
Simon Ser 2021-08-09 15:19:06 +02:00
parent 937204d769
commit f7276aaf2f
6 changed files with 263 additions and 1 deletions

View file

@ -32,6 +32,9 @@ struct wlr_drm_plane {
struct wlr_drm_format_set formats;
union wlr_drm_plane_props props;
// TODO: shouldn't be part of wlr_drm_plane
struct liftoff_layer *liftoff_layer;
};
struct wlr_drm_crtc {
@ -49,6 +52,8 @@ struct wlr_drm_crtc {
struct wlr_drm_plane *cursor;
union wlr_drm_crtc_props props;
struct liftoff_output *liftoff;
};
struct wlr_drm_backend {
@ -83,6 +88,7 @@ struct wlr_drm_backend {
struct wlr_drm_renderer mgpu_renderer;
struct wlr_session *session;
struct liftoff_device *liftoff;
uint64_t cursor_width, cursor_height;