aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-09-23 13:20:17 +1200
committerScott Anderson <ascent12@hotmail.com>2017-09-23 13:20:17 +1200
commit4a53aab4663a2d26fa10d913222986201c080fbd (patch)
tree04cd99e91d51ffba388b01a4f6ba62d1fb1c7db7 /backend/drm
parent1682c0d983630d315dab0277381a5c3ffb69feaf (diff)
Allow forcing legacy DRM interface
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index a4f987ee..5c0bad46 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -31,7 +31,10 @@ bool wlr_drm_check_features(struct wlr_drm_backend *backend) {
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");
backend->iface = &legacy_iface;
} else {