diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-06 17:29:07 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-04-29 19:51:57 +0200 |
commit | 31082a0554b5558f6865fdf5c9c9ef3f5afc3e33 (patch) | |
tree | a51138c4d646901833248edad9dcebe983ac704c /include/backend/drm/drm.h | |
parent | dfea0ff31dbf74f4d310df8eb55a57a51878e1fc (diff) |
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.
Diffstat (limited to 'include/backend/drm/drm.h')
-rw-r--r-- | include/backend/drm/drm.h | 8 |
1 files changed, 2 insertions, 6 deletions
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__) |