backend/drm: don't allow legacy to use direct scanout

This commit is contained in:
Scott Anderson 2020-04-27 11:09:48 +02:00 committed by Simon Ser
parent 52281cb8ba
commit 321537ee92
1 changed files with 7 additions and 0 deletions

View File

@ -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;