summaryrefslogtreecommitdiff
path: root/py/pykms
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-01-02 17:16:43 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-04-15 22:53:54 +0300
commitcdbee74e8da7555f77d19d3c5064dab83db607ff (patch)
tree0e4ba2814f309e0ab8af56a271da6cf8a591ae2a /py/pykms
parent28cab7063328f02abc5f31c0ef79017c3127ee57 (diff)
Add SW sync support
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'py/pykms')
-rw-r--r--py/pykms/pykmsbase.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp
index 4d4559d..970e533 100644
--- a/py/pykms/pykmsbase.cpp
+++ b/py/pykms/pykmsbase.cpp
@@ -189,4 +189,16 @@ void init_pykmsbase(py::module &m)
}, py::arg("data"), py::arg("allow_modeset") = false)
.def("commit_sync", &AtomicReq::commit_sync, py::arg("allow_modeset") = false)
;
+
+ py::class_<SWSync>(m, "SWSync")
+ .def_property_readonly("fd", &SWSync::fd)
+ ;
+
+ py::class_<SWSyncTimeline>(m, "SWSyncTimeline")
+ .def(py::init<>())
+ .def("create_fence", &SWSyncTimeline::createFence)
+ .def("signal", &SWSyncTimeline::signal)
+ .def_property_readonly("value", &SWSyncTimeline::value)
+ ;
+
}