summaryrefslogtreecommitdiff
path: root/py/pykms
diff options
context:
space:
mode:
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)
+ ;
+
}