diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-03-17 18:47:01 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-03-17 18:47:01 +0200 |
commit | d57d98583dd4bd7b03dbb79eea294ccb236d59a4 (patch) | |
tree | cc20f3a7292ab988b4ff560daea3afbfab133ff7 | |
parent | e43a5d42c1bec57ae874762e179a0d0b645c7e72 (diff) |
AtomicReq: add sync commit
-rw-r--r-- | libkms++/atomicreq.cpp | 7 | ||||
-rw-r--r-- | libkms++/atomicreq.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libkms++/atomicreq.cpp b/libkms++/atomicreq.cpp index a865eec..a11d382 100644 --- a/libkms++/atomicreq.cpp +++ b/libkms++/atomicreq.cpp @@ -63,6 +63,13 @@ int AtomicReq::test() return drmModeAtomicCommit(m_card.fd(), m_req, flags, 0); } +int AtomicReq::commit() +{ + uint32_t flags = 0; + + return drmModeAtomicCommit(m_card.fd(), m_req, flags, 0); +} + int AtomicReq::commit(void* data) { uint32_t flags = DRM_MODE_PAGE_FLIP_EVENT | DRM_MODE_ATOMIC_NONBLOCK; diff --git a/libkms++/atomicreq.h b/libkms++/atomicreq.h index e3bd172..94b506d 100644 --- a/libkms++/atomicreq.h +++ b/libkms++/atomicreq.h @@ -23,6 +23,7 @@ public: void add(DrmObject *ob, const std::string& prop, uint64_t value); int test(); + int commit(); int commit(void* data); int commit(PageFlipHandlerBase* data) { return commit((void*)data); } |