From 31082a0554b5558f6865fdf5c9c9ef3f5afc3e33 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 6 Apr 2021 17:29:07 +0200 Subject: backend/drm: remove wlr_drm_crtc_state.mode Replace it with drm_connector_state_mode, which computes the mode from the wlr_output_state to be applied. --- include/backend/drm/drm.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'include/backend/drm') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 64961ab4..4715cbf7 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -41,15 +41,9 @@ struct wlr_drm_plane { union wlr_drm_plane_props props; }; -struct wlr_drm_crtc_state { - struct wlr_drm_mode *mode; -}; - struct wlr_drm_crtc { uint32_t id; - struct wlr_drm_crtc_state pending, current; - // Atomic modesetting only uint32_t mode_id; uint32_t gamma_lut; @@ -161,6 +155,8 @@ 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); bool drm_connector_state_active(struct wlr_drm_connector *conn, const struct wlr_output_state *state); +void drm_connector_state_mode(struct wlr_drm_connector *conn, + const struct wlr_output_state *state, drmModeModeInfo *mode); #define wlr_drm_conn_log(conn, verb, fmt, ...) \ wlr_log(verb, "connector %s: " fmt, conn->name, ##__VA_ARGS__) -- cgit v1.2.3