summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-27README: add note about pythonTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-01-27py/tests: hpd testTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-01-25wbcap: fix setup if a display is unconfiguredTomi Valkeinen
2017-01-25Add refresh() to connector, crtc and encoderTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-01-24pykms: add Videomode.__repr__Tomi Valkeinen
2017-01-03py: db.py: Print frame rate at 5s intervalsLaurent Pinchart
Print both the number of vsyncs (as reported by the driver in flip events) and the number of flip events. This is useful to debug frame rate related issues. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-01-03py: db.py: Rename argument to event handlers to avoid shadowingLaurent Pinchart
The first argument to the key event handlers bears the same name as the global variable that identifies the connector. Rename it to fileobj which, in addition to being more descriptive, avoids shadowing the global variable. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-01-03py: Move helpers to the pykms moduleLaurent Pinchart
Instead of forcing applications to import the helpers manually, move them to pykms by turning it into a python module. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-01-03py: Reorganize source directoryLaurent Pinchart
Separate the Python bindings sources from the test scripts. While at it, remove the unneeded run.sh script. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-01-03py: Expose MappedFramebuffer width and height propertiesLaurent Pinchart
The property getters are defined as pure virtual functions in the MappedFramebuffer class. Expose the Python properties as part of the bindings for that class to make them available for all classes inheriting from MappedFramebuffer. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-12-20kmstest: don't reserve primary_plane if it's not neededTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-12-20kmstest: disable crtcs & planes before modesetTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-12-20kmstest: fix bug in setups_to_outputs()Tomi Valkeinen
Bad output used to get the crtc, causing crash. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-12-20crtc: add disable_mode()Tomi Valkeinen
Add crtc::disable_mode() for disabling the crtc. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-12-12kmstest: use resman to get primary planesTomi Valkeinen
We need to ensure that a primary plane is not already in use. ResourceManager does this for us. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-12-09kmscube: improve egl config printsTomi Valkeinen
2016-11-26kmscube: fix X11 fullscreenTomi Valkeinen
2016-11-26cmake: set C_FLAGS tooTomi Valkeinen
2016-11-22py: Add OmapCard & OmapFramebuffer supportTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-11-22py: Add MappedFramebuffer and use itTomi Valkeinen
Add MappedFramebuffer to python bindings and use it for the draw functions. Looks like recent pybind11 versions have better multi-inheritance support, so all this need to be revisited after updating pybind11. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-11-21Add OmapCard and OmapFramebufferTomi Valkeinen
Add OmapCard and OmapFramebuffer classes to utilize omap_bos. Only non-tiled framebuffer is implemented for now. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-11-21kmstest: use MappedFramebufferTomi Valkeinen
Use MappedFramebuffer instead of DumbFramebuffer in kmstest, except when creating the object. This change makes it possible to easily use other framebuffer objects in kmstest than DumbFramebuffer. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-11-21Add MappedFramebufferTomi Valkeinen
Add a base MappedFramebuffer class, which inherits Framebuffer and implements IMappedFramebuffer. This helps to implement platform specific framebuffer classes, like OmapFramebuffer. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-11-03dumbfb: pass O_RDWR to drmPrimeHandleToFD()Tomi Valkeinen
This enables write access to the dumb fb with mmap(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-11modedb_dmt: update tableTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-11Add DMT scriptTomi Valkeinen
Add script to auto-generate DMT tables. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-11kmstest: be explicit about mode selectionTomi Valkeinen
Instead of searching through the dmt and cea tables (if user has given the option), lets be more explicit about it. Only look for the mode from a single source, and fail if not found there. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-11kmstest: add --cvt optionTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-11kms++: add videomode_from_cvt()Tomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-11Add comment about ilaceTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-10Travis: only build master & travisTomi Valkeinen
2016-10-01Travis: use VERBOSE=1Tomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-01Travis: set -Wno-maybe-uninitialized for gcc-4.9Tomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-01Travis: treat warnings as errorsTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-01Add cmake option for -WerrorTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-01travis: add my emailTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-10-01remove -rdynamic gcc flagTomi Valkeinen
This reduces the exe sizes. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-09-30travis: improve .travis.ymlTomi Valkeinen
2016-09-30Travis: test different gcc versionsTomi Valkeinen
2016-09-30kmstest: enable display even if crtc doesn't have fbTomi Valkeinen
With atomic modesetting we can enable the crtc without a primary plane. This allows enabling only a plane on the screen. Change set_crtcs_n_planes() to allow this. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-09-29README: travis iconTomi Valkeinen
2016-09-29travis: enable kmscubeTomi Valkeinen
2016-09-29Add Travis CITomi Valkeinen
2016-09-29Improve mode findingTomi Valkeinen
Change calculated_vrefresh to round to 2 decimals, and do two rounds when looking for a mode: first look for exact vrefresh match, then look for rounded match. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-09-29Improve LTO detection codeTomi Valkeinen
Split LTO detection into separate func and file, and create a cached LTO_WORKS variable. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-28Fix LTO detectionLaurent Pinchart
Catch gcc-ar and gcc-ranlib versions compiled without plugin support and disable LTO in that case. Also do the LTO check only once by checking if HAS_LTO_FLAG has been set. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-09-27kmsprint: fix printsTomi Valkeinen
2016-09-27Card: virtual destructorTomi Valkeinen
Add virtual destructor so Card can be inherited. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-09-26kmatest: add custom videomode supportTomi Valkeinen
Support custom videomodes when specifying a crtc. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2016-09-26kmatest: split regex strings to multiple linesTomi Valkeinen
Split regex strings to multiple lines to make them slightly more readable. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>