aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-06 15:42:14 +0200
committerSimon Ser <contact@emersion.fr>2021-04-06 20:35:15 +0200
commit5088e25eaf8aca2934acd315b88524b6c7937188 (patch)
treec0b08111081f7ba7d991e5088d753aca8a86e8a6 /backend/drm
parent55aaeb25c57630add817524b579c3f05a805c09d (diff)
backend/drm: don't set NONBLOCK with TEST_ONLY
The kernel ignores NONBLOCK when TEST_ONLY is set. Let's just not set it, to make it clear it's unused.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/atomic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c
index 75c79525..310138f0 100644
--- a/backend/drm/atomic.c
+++ b/backend/drm/atomic.c
@@ -202,7 +202,7 @@ static bool atomic_crtc_commit(struct wlr_drm_backend *drm,
if (crtc->pending_modeset) {
flags |= DRM_MODE_ATOMIC_ALLOW_MODESET;
- } else {
+ } else if (!(flags & DRM_MODE_ATOMIC_TEST_ONLY)) {
flags |= DRM_MODE_ATOMIC_NONBLOCK;
}