summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-04-11 19:11:09 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-04-12 10:25:59 +0300
commitc5cee811d1f0794c813745dff158057be9ce49af (patch)
tree9a92abdc7e17718ed0a396fc41ac74bc1a9068c1 /libkms++
parenta15d72debd94398e5e4c91b84e7d86055774a187 (diff)
atomicreq: add commit_sync()
Diffstat (limited to 'libkms++')
-rw-r--r--libkms++/atomicreq.cpp7
-rw-r--r--libkms++/atomicreq.h1
2 files changed, 8 insertions, 0 deletions
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;