From 485ecc11a6d31c1a2ba3724dd61ce34f77e7436f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 6 Apr 2021 17:06:37 +0200 Subject: 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. --- include/backend/drm/drm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/backend') 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, ...) \ -- cgit v1.2.3