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.
This commit is contained in:
Simon Ser 2021-04-06 15:42:14 +02:00
parent 55aaeb25c5
commit 5088e25eaf
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}