mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01: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;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
|
|
Loading…
Reference in a new issue