aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/drm.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-22 11:38:01 +0200
committerSimon Ser <contact@emersion.fr>2021-08-25 08:37:35 +0200
commit65c0ab00b6aac3b6ca7fb3603a02116120b6ed46 (patch)
tree288a39c09d2313a0cb3523a4bdd8ed71e258316f /backend/drm/drm.c
parent72a156b18aea4da5a87823da8a10ace389f9325e (diff)
backend/drm: generate CVT reduced modes
The Coordinated Video Timings (CVT) spec [1] defines two types of timings: the "CVT standard CRT" timings and the "CVT reduced blanking" timings (see section 3.6). The standard CRT timings include pauses in the video stream to allow CRT displays to reposition their electron beam at the end of each horizontal scan line [2]. While this was desirable a few decades ago, nowadays we can just generate a CVT reduced blanking timing by default. wlroots users can still set full custom DRM modes via wlr_drm_connector_add_mode. [1]: https://glenwing.github.io/docs/VESA-CVT-1.2.pdf [2]: https://en.wikipedia.org/wiki/Coordinated_Video_Timings#Reduced_blanking
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 156b6b7b..6af693dc 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1042,7 +1042,7 @@ void drm_connector_state_mode(struct wlr_drm_connector *conn,
drmModeModeInfo mode = {0};
generate_cvt_mode(&mode, state->custom_mode.width,
state->custom_mode.height,
- (float)state->custom_mode.refresh / 1000, false, false);
+ (float)state->custom_mode.refresh / 1000, true, false);
mode.type = DRM_MODE_TYPE_USERDEF;
memcpy(out, &mode, sizeof(drmModeModeInfo));
return;