backend/drm: add infrastructure for device-wide commits

This commit is contained in:
Simon Ser 2024-02-14 16:35:29 +01:00
parent b19f537ed0
commit 73efe8e6e3
6 changed files with 256 additions and 175 deletions

View file

@ -121,11 +121,17 @@ struct wlr_drm_mode {
drmModeModeInfo drm_mode;
};
struct wlr_drm_device_state {
bool modeset;
bool nonblock;
struct wlr_drm_connector_state *connectors;
size_t connectors_len;
};
struct wlr_drm_connector_state {
struct wlr_drm_connector *connector;
const struct wlr_output_state *base;
bool modeset;
bool nonblock;
bool active;
drmModeModeInfo mode;
struct wlr_drm_fb *primary_fb;