mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
backend/drm: don't allow legacy to use direct scanout
This commit is contained in:
parent
52281cb8ba
commit
321537ee92
1 changed files with 7 additions and 0 deletions
|
|
@ -373,6 +373,13 @@ static bool test_buffer(struct wlr_drm_connector *conn,
|
||||||
return false;
|
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;
|
struct wlr_drm_crtc *crtc = conn->crtc;
|
||||||
if (!crtc) {
|
if (!crtc) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue