summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2016-09-26Improve struct VideomodeTomi Valkeinen
Enable set/get for sync polarities and interlace. Add videomode_from_timings() helper to construct Videomode from non-X timings. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-09-23kmsprint: improve property enum printsTomi Valkeinen
2016-09-01Fix error printsTomi Valkeinen
2016-08-27Fix LTO support for cross-compilation.Arnout Vandecappelle (Essensium/Mind)
When cross-compiling, the ar and ranlib to be used for LTO are prefixed by the cross-tuple. gcc-ar and gcc-ranlib may not exist. Cfr. http://autobuild.buildroot.net/results/f3c/f3c48da3a9706cd366c0e0a96c3cd0ff959f2a78/ Therefore, search for an appropriate lto-ar and lto-ranlib before enabling LTO. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2016-08-24kmstest: rename remaining references to testpatTomi Valkeinen
2016-08-16rename testpat and fbtestpatTomi Valkeinen
2016-08-15Merge branch 'master' of git://github.com/jsarha/kmsxxTomi Valkeinen
2016-08-15Fix byte order of 24-bit formats.Jyri Sarha
2016-08-15Add missing BGR color formats to draw_test_pattern_part().Jyri Sarha
2016-08-15AtomicReq: add add_display() helperTomi Valkeinen
2016-08-15ResourceManager: add card()Tomi Valkeinen
2016-08-15support finding fractional vrefreshTomi Valkeinen
2016-08-15modedb: fix vrefresh for ilaceTomi Valkeinen
2016-08-15testpat & kmsprint: improve mode printsTomi Valkeinen
2016-08-12ExtCPUFramebuffer: add size and offset paramsTomi Valkeinen
Add size and offset params to ExtCPUFramebuffer, so that we can fix fbtestpat's test pattern size on larger virtual fbdevs.
2016-08-12fbtestpat: remove extra leftover memcpyTomi Valkeinen
2016-08-11add basic cmake install systemTomi Valkeinen
2016-08-11Merge branch 'master' of git://github.com/jsarha/kmsxxTomi Valkeinen
2016-08-11Add BGR888 (BG24) and BGR565 (BG16) pixelformats.Jyri Sarha
Note colorbar does not support 24 bit modes (RGB888 or BGR888) yet.
2016-08-10Merge branch 'yem/musl' of git://github.com/yann-morin-1998/kmsxxTomi Valkeinen
2016-08-10utils: select() et al. need <sys/select.h>Yann E. MORIN
Although indirectly included by way of other headers with glibc and uClibc, using any of the select()-class familly of functions or macros requires including <sys/select.h>. This fixes the build under musl, which is way more conservative in the ehaders that are included one-from-the-others (k.e. as few as possible). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2016-08-10kms++-util: portability fixYann E. MORIN
__STRING(x) is a glibcism (i.e. it is non-standard), that happens to be also available with uClibc, but is not with musl. Define it if not already defined, using the same trivial definition as is done by both glibg and uClibc. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2016-08-10fbtestpat: draw "/dev/fb0" textTomi Valkeinen
2016-07-10Fix property name lookupTomi Valkeinen
Object types can have different properties with the same name, so we need to move name-based property lookup from Card to DrmPropObject. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-07-10README: add notes about custom toolchainfileTomi Valkeinen
2016-07-10kms++: fix AtomicReq compilationTomi Valkeinen
4fb69b7d20e90746855de122422ac9cabd78f66f ("kms++: use DrmPropObject in AtomicReq") made AtomicReq::add() use a not-yet-implemented method. Fix this by changing that line back. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-22Add missing <system_error> includesTomi Valkeinen
Missing <system_error> breaks compliation on gcc 4.9. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-22py: fix AtomicReq's add()Tomi Valkeinen
"kms++: use DrmPropObject in AtomicReq" forgot to update py bindings. Fix this. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-22kmsprint: Include cinttypes instead of inttypes.hLaurent Pinchart
cinttypes is the right C++ header, and doesn't require source files to define __STDC_FORMAT_MACROS to get the integer type format macros. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-22kms++: use DrmPropObject in AtomicReqTomi Valkeinen
The objects to which we set properties with AtomicReq must have properties, so they are DrmPropObjects instead of DrmObjects. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-22kms++: update decls.hTomi Valkeinen
Sort the declarations and add DrmPropObject. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-22py: Expose the Connector::get_mode methodsLaurent Pinchart
Those methods are useful in Python scripts, expose them through the bindings. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2016-06-20Merge V4L2 related workTomi Valkeinen
2016-06-20Framebuffer: don't crash is drmModeGetFB() returns 0Tomi Valkeinen
2016-06-20Add Framebuffer::flush()Tomi Valkeinen
2016-06-17kmscube: use drmModeAddFB2 version of ExtFBTomi Valkeinen
2016-06-16utils: add wbm2mTomi Valkeinen