mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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.
This commit is contained in:
parent
dfea0ff31d
commit
31082a0554
4 changed files with 34 additions and 18 deletions
|
|
@ -32,10 +32,12 @@ static bool legacy_crtc_commit(struct wlr_drm_backend *drm,
|
|||
uint32_t *conns = NULL;
|
||||
size_t conns_len = 0;
|
||||
drmModeModeInfo *mode = NULL;
|
||||
drmModeModeInfo mode_info = {0};
|
||||
if (active) {
|
||||
conns = &conn->id;
|
||||
conns_len = 1;
|
||||
mode = &crtc->pending.mode->drm_mode;
|
||||
drm_connector_state_mode(conn, state, &mode_info);
|
||||
mode = &mode_info;
|
||||
}
|
||||
|
||||
uint32_t dpms = active ? DRM_MODE_DPMS_ON : DRM_MODE_DPMS_OFF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue