diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-12-08 01:44:33 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-04-16 19:12:43 +0300 |
commit | f3a478951ac576c69a5828d80ff23d02e0940b9e (patch) | |
tree | 9341af022ea38c2f19100eb59e3243f0f9380424 /py/pykms | |
parent | 5610b6440617246972105a93ca6a35c9ed045db4 (diff) |
omap: Add support for cached GEM objects
OMAP buffers are mapped to userspace in write-combining mode by default.
Add support for cached mappings.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/pykmsomap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/pykms/pykmsomap.cpp b/py/pykms/pykmsomap.cpp index a749f76..0b27e51 100644 --- a/py/pykms/pykmsomap.cpp +++ b/py/pykms/pykmsomap.cpp @@ -15,9 +15,9 @@ void init_pykmsomap(py::module &m) ; py::class_<OmapFramebuffer>(m, "OmapFramebuffer", py::base<MappedFramebuffer>()) - .def(py::init<OmapCard&, uint32_t, uint32_t, const string&>(), + .def(py::init<OmapCard&, uint32_t, uint32_t, const string&, bool>(), py::keep_alive<1, 2>()) // Keep Card alive until this is destructed - .def(py::init<OmapCard&, uint32_t, uint32_t, PixelFormat>(), + .def(py::init<OmapCard&, uint32_t, uint32_t, PixelFormat, bool>(), py::keep_alive<1, 2>()) // Keep OmapCard alive until this is destructed ; } |