diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-06 17:06:37 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-04-29 19:51:57 +0200 |
commit | 485ecc11a6d31c1a2ba3724dd61ce34f77e7436f (patch) | |
tree | 6da8c9ede14785a3d8abffc9e5a3329af133f53b /include/backend | |
parent | c9c2d7539c69c8bf349a5b633ab61ce2d7c20e8a (diff) |
backend/drm: remove wlr_drm_crtc.pending_modeset
Replace it with a new drm_connector_state_is_modeset function that
decides whether a modeset is necessary directly from the
wlr_output_state which is going to be applied.
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/drm/drm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index bc33e5c1..b6446653 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -49,7 +49,6 @@ struct wlr_drm_crtc_state { struct wlr_drm_crtc { uint32_t id; - bool pending_modeset; struct wlr_drm_crtc_state pending, current; // Atomic modesetting only @@ -160,6 +159,8 @@ size_t drm_crtc_get_gamma_lut_size(struct wlr_drm_backend *drm, struct wlr_drm_fb *plane_get_next_fb(struct wlr_drm_plane *plane); +bool drm_connector_state_is_modeset(const struct wlr_output_state *state); + #define wlr_drm_conn_log(conn, verb, fmt, ...) \ wlr_log(verb, "connector %s: " fmt, conn->name, ##__VA_ARGS__) #define wlr_drm_conn_log_errno(conn, verb, fmt, ...) \ |