aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Anderson <scott@anderso.nz>2020-04-27 11:09:48 +0200
committerSimon Ser <contact@emersion.fr>2020-04-28 09:54:52 +0200
commit321537ee92e2a9eeb115434181c12b4ccf8f9ef9 (patch)
tree5e8373e073ba2ac3a1db1cfcebb2721580c87da8
parent52281cb8ba7e0badd92662ade136d25929a67828 (diff)
backend/drm: don't allow legacy to use direct scanout
-rw-r--r--backend/drm/drm.c7
1 files changed, 7 insertions, 0 deletions
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;