summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-10trans-test.py: am4 improvementsTomi Valkeinen
2018-08-03trans-test.py: improvementsTomi Valkeinen
2018-08-03add a simple draw_circle()Tomi Valkeinen
2018-06-29kmstest: set props in legacy modesetting tooTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-06-29drmpropobject: add set_prop_value(Property* prop, uint64_t value)Tomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-06-29kmstest: print property idsTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-06-20py: sync: Moded to blob conversion method is called to_blob()Laurent Pinchart
There's no blob() method on mode objects, use to_blob(). Fixes: 66f161d0032e ("py: Add in fence test using swsync") Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-06-20py: sync: Fix event handlingLaurent Pinchart
Fancy event handling was dropped in commit 95de32aa7fbb ("py: drop the fancy event handling"). Python tests were updated, but one commit call got forgotten in the sync.py test. Fix it. Fixes: 95de32aa7fbb ("py: drop the fancy event handling") Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-05-22testpat: remove threaded drawingTomi Valkeinen
Threading causes easily issues with (at least) static linking. Let's just remove it as it's not really that important. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-04-02Add DPI encoderTomi Valkeinen
2018-01-12Use full license text to help github figure out the licenseTomi Valkeinen
2018-01-12alpha-test.py: fixTomi Valkeinen
2018-01-09trans-test.py: fix drawing outside the bufferTomi Valkeinen
2018-01-09add safeguards to draw_*_pixel() to prevent memory corruptionTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-01-05kmstest: Separate reservation phase from command line parsingJyri Sarha
In the new order the planes are not reserved before the whole command line is parsed. This way we know the color format of the framebuffer that is going to be on the reserved plane and we can select a plane that supports the format. After this patch kmstest makes no distinction between primary and overlay planes if atomic mode setting is supported. If no plane is specified then a default plane, matching the screen size is created. Signed-off-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-01-05kmstest: Implement simplistic propery support behind -P flag.Jyri Sarha
Non atomic modesetting is not supported and there is no translation from various property types to unsigned 64-bit integer. Instead the property values are simply converted from string with stoull(str, 0, 0). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-12-15py: pyvid: Provide stream_off bindingKieran Bingham
The videodevice module defines a stream_off function call, but this is not available in the python bindings interface. Provide the binding of VideoStreamer::stream_off. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-12-15videodevice: Fix minor spacingKieran Bingham
Provide a space between the return type and the function definition Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-12-08py: add convert_vector helperTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-12-08py: Add Card crtcs and encoders properties back to the Python bindingsLaurent Pinchart
Commit 706a44abb3aa ("Update to latest pybind11") removed the crtcs and encoders properties from the Card class. Add them back by wrapping the associated C++ methods manually due to a limitation of pybind11. Fixes: 706a44abb3aa ("Update to latest pybind11") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-12-08Fix Python bindings for Connector::get_possible_crtcs() methodLaurent Pinchart
The method returns an std::vector of DRMObject, which isn't supported by the latest pybind11 as explained in commit 706a44abb3aa. Fix it by wrapping the method manually. Fixes: 706a44abb3aa ("Update to latest pybind11") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-11-24pykms: keep Card alive until Blob is goneTomi Valkeinen
2017-11-24travis: add gcc6 & gcc7Tomi Valkeinen
2017-11-24Update to latest pybind11Tomi Valkeinen
Update to latest pybind11 HEAD. We can't use the latest tag (v2.2.0) as it has a regression. There were two problems when updating: 1) Difficulty in managing DrmObject derived classes Most of the DrmObjects are owned by Card, and can't be allocated or freed, but a few of them are allocated and freed by the user. For the former, we need to use unique_ptr with py::nodelete, but that prevents the latter from working. The solution was to not tell the python that the latter classes derive from DrmObject. This seems to be missing feature in pybind11, but I think we can live with it. 2) DrmObjects in STL containers vector<T> where T is a DrmObject derived class doesn't work. We need to have a manual wrapper to return vector<unique_ptr<T, py::nodelete>> instead. This also seems to be a pybind11 missing feature. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-11-22resman: use set<> instead of vector<>Tomi Valkeinen
2017-11-22kmstest: use resmanTomi Valkeinen
2017-10-24kmstest: rename ObjectType to ArgTypeTomi Valkeinen
2017-10-24wbcap: support saving to fileTomi Valkeinen
2017-10-20utils: wbcap interlace supportTomi Valkeinen
2017-10-20utils: improve wbcapTomi Valkeinen
2017-10-20Crtc: add set_mode() which doesn't take a fbTomi Valkeinen
2017-10-20Connector: improve get_mode(string)Tomi Valkeinen
2017-10-20Card: add disable_all()Tomi Valkeinen
2017-10-20Videomode: add to_string()Tomi Valkeinen
2017-10-10kmscube: update drm resource allocationTomi Valkeinen
2017-10-10kmscube: drop non-atomic supportTomi Valkeinen
2017-10-03kmscapture: fix capture videomode heuristicTomi Valkeinen
2017-10-03kmscapture: clean up fb handlingTomi Valkeinen
2017-10-03kmscapture: fix v4l buftypeTomi Valkeinen
2017-10-03Rework framebuffer classesTomi Valkeinen
Drop (I)MappedFramebuffer, as it doesn't really provide any value, and have most of the methods be present in IFramebuffer with default exception throwing implementation. This gives us simpler way to use the framebuffers, as almost always we can just use a pointer to IFramebuffer.
2017-10-03card: fix compile warningTomi Valkeinen
2017-10-03kmscube: compile fixTomi Valkeinen
2017-10-03add ExtFramebuffer::prime_fdTomi Valkeinen
2017-09-05py: drop the fancy event handlingTomi Valkeinen
Unfortunately the nice event handler added previously doesn't work: we may get multiple page-flip events, which would lead to unref'ing the passed python object multiple times, leading to memory corruption. I guess it's only possible to pass a plain int as user data to commit() and page_flip().
2017-09-04kmstest: fix --sync modeTomi Valkeinen
DRM sends page flips for each crtc in a commit. kmstest expected to get a single flip event for a single commit, which caused --sync not to work with two displays. Fix this by making kmstest skip the first flip event.
2017-09-04kmstest: add help text about env variablesTomi Valkeinen
2017-08-04kmstest: fix error in help textTomi Valkeinen
2017-06-30kmsprint: print connectors even if disconnectedTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-06-05testpat: fix the location of second diagonal lineTomi Valkeinen
2017-06-02Merge branch 'color-features' of git://github.com/jsarha/kmsxxTomi Valkeinen