aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-06 17:06:37 +0200
committerKenny Levinsen <kl@kl.wtf>2021-04-29 19:51:57 +0200
commit485ecc11a6d31c1a2ba3724dd61ce34f77e7436f (patch)
tree6da8c9ede14785a3d8abffc9e5a3329af133f53b /include/backend
parentc9c2d7539c69c8bf349a5b633ab61ce2d7c20e8a (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.h3
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, ...) \