diff options
Diffstat (limited to 'src/cam')
-rw-r--r-- | src/cam/drm.cpp | 2 | ||||
-rw-r--r-- | src/cam/drm.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/cam/drm.cpp b/src/cam/drm.cpp index fbfc0a59..b0602c94 100644 --- a/src/cam/drm.cpp +++ b/src/cam/drm.cpp @@ -377,6 +377,8 @@ int AtomicRequest::commit(unsigned int flags) drmFlags |= DRM_MODE_ATOMIC_ALLOW_MODESET; if (flags & FlagAsync) drmFlags |= DRM_MODE_PAGE_FLIP_EVENT | DRM_MODE_ATOMIC_NONBLOCK; + if (flags & FlagTestOnly) + drmFlags |= DRM_MODE_ATOMIC_TEST_ONLY; return drmModeAtomicCommit(dev_->fd(), request_, drmFlags, this); } diff --git a/src/cam/drm.h b/src/cam/drm.h index 655a7509..ebaea04d 100644 --- a/src/cam/drm.h +++ b/src/cam/drm.h @@ -251,6 +251,7 @@ public: enum Flags { FlagAllowModeset = (1 << 0), FlagAsync = (1 << 1), + FlagTestOnly = (1 << 2), }; AtomicRequest(Device *dev); |