mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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:
parent
937204d769
commit
f7276aaf2f
6 changed files with 263 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ struct wlr_drm_interface {
|
|||
|
||||
extern const struct wlr_drm_interface atomic_iface;
|
||||
extern const struct wlr_drm_interface legacy_iface;
|
||||
extern const struct wlr_drm_interface libliftoff_iface;
|
||||
|
||||
bool drm_legacy_crtc_set_gamma(struct wlr_drm_backend *drm,
|
||||
struct wlr_drm_crtc *crtc, size_t size, uint16_t *lut);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue