Allow forcing legacy DRM interface
This commit is contained in:
parent
1682c0d983
commit
4a53aab466
|
@ -31,7 +31,10 @@ bool wlr_drm_check_features(struct wlr_drm_backend *backend) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (drmSetClientCap(backend->fd, DRM_CLIENT_CAP_ATOMIC, 1)) {
|
if (getenv("WLR_DRM_NO_ATOMIC")) {
|
||||||
|
wlr_log(L_DEBUG, "WLR_DRM_NO_ATOMIC set, forcing legacy DRM interface");
|
||||||
|
backend->iface = &legacy_iface;
|
||||||
|
} else if (drmSetClientCap(backend->fd, DRM_CLIENT_CAP_ATOMIC, 1)) {
|
||||||
wlr_log(L_DEBUG, "Atomic modesetting unsupported, using legacy DRM interface");
|
wlr_log(L_DEBUG, "Atomic modesetting unsupported, using legacy DRM interface");
|
||||||
backend->iface = &legacy_iface;
|
backend->iface = &legacy_iface;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue