From c5cee811d1f0794c813745dff158057be9ce49af Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 11 Apr 2016 19:11:09 +0300 Subject: atomicreq: add commit_sync() --- libkms++/atomicreq.cpp | 7 +++++++ libkms++/atomicreq.h | 1 + 2 files changed, 8 insertions(+) diff --git a/libkms++/atomicreq.cpp b/libkms++/atomicreq.cpp index a11d382..f2aa322 100644 --- a/libkms++/atomicreq.cpp +++ b/libkms++/atomicreq.cpp @@ -76,4 +76,11 @@ int AtomicReq::commit(void* data) return drmModeAtomicCommit(m_card.fd(), m_req, flags, data); } + +int AtomicReq::commit_sync() +{ + uint32_t flags = 0; + + return drmModeAtomicCommit(m_card.fd(), m_req, flags, 0); +} } diff --git a/libkms++/atomicreq.h b/libkms++/atomicreq.h index 94b506d..54740c2 100644 --- a/libkms++/atomicreq.h +++ b/libkms++/atomicreq.h @@ -26,6 +26,7 @@ public: int commit(); int commit(void* data); int commit(PageFlipHandlerBase* data) { return commit((void*)data); } + int commit_sync(); private: Card& m_card; -- cgit v1.2.3