From dc9fdd638574c201c13ce971d6d7149ada6eb94a Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Wed, 21 Nov 2018 19:23:48 +0000 Subject: Skip interlaced modes during drm mode detection Fixes #3167 A better solution could be made if there's a need to. --- backend/drm/drm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backend') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 9fd5c6a3..eb3a71c0 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1133,6 +1133,12 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) { wlr_log_errno(WLR_ERROR, "Allocation failed"); continue; } + + if (mode->drm_mode.flags & DRM_MODE_FLAG_INTERLACE) { + free(mode); + continue; + } + mode->drm_mode = drm_conn->modes[i]; mode->wlr_mode.width = mode->drm_mode.hdisplay; mode->wlr_mode.height = mode->drm_mode.vdisplay; -- cgit v1.2.3