From 321537ee92e2a9eeb115434181c12b4ccf8f9ef9 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 27 Apr 2020 11:09:48 +0200 Subject: backend/drm: don't allow legacy to use direct scanout --- backend/drm/drm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 8efc9d7f..89d89c03 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -373,6 +373,13 @@ static bool test_buffer(struct wlr_drm_connector *conn, return false; } + /* Legacy never gets to have nice things. But I doubt this would ever work, + * and there is no reliable way to try, without risking messing up the + * modesetting state. */ + if (drm->iface == &legacy_iface) { + return false; + } + struct wlr_drm_crtc *crtc = conn->crtc; if (!crtc) { return false; -- cgit v1.2.3