backend/drm: add infrastructure for device-wide commits

This commit is contained in:
Simon Ser 2024-02-14 16:35:29 +01:00 committed by Kenny Levinsen
parent 4636f8c407
commit 805807fd5b
6 changed files with 256 additions and 175 deletions

View file

@ -122,11 +122,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;