backend/drm: introduce struct wlr_drm_connector_atomic_state

This centralizes logic common for both the atomic and libliftoff
backends. Additionally, a struct will make it easier to implement
multi-connector commits (since it can be stored in an array).
This commit is contained in:
Simon Ser 2024-02-14 15:41:29 +01:00
parent a05a3d7849
commit b19f537ed0
6 changed files with 112 additions and 138 deletions

View file

@ -129,6 +129,12 @@ struct wlr_drm_connector_state {
bool active;
drmModeModeInfo mode;
struct wlr_drm_fb *primary_fb;
// used by atomic
uint32_t mode_id;
uint32_t gamma_lut;
uint32_t fb_damage_clips;
bool vrr_enabled;
};
/**