From 5088e25eaf8aca2934acd315b88524b6c7937188 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 6 Apr 2021 15:42:14 +0200 Subject: [PATCH] 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. --- backend/drm/atomic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }