summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-15resmgr: add release() methodsMatt Hoosier
This makes the ResourceManager class much more functional for uses where the set of resources used to scan out a scene changes from frame to frame. The atomic modesetting API discipline requires a brute-force search to find a compatible pairing of planes/etc, and being able to reserve bits incrementally is much simpler than throwing out the entire resourcemanager and make a new one each time a resource reserved in a tentative attempt to probe its compatibility with an test-mode atomic commit, turns out not to pan out.
2020-04-21py/cam.py: get w & h from cmdlineTomi Valkeinen
2020-04-21kmstest: add crc16 printTomi Valkeinen
Add an option to print crc16 for the framebuffer contents.
2020-04-21Add simple kmstouch test toolTomi Valkeinen
Only single touch supported, and pretty naive implementation.
2020-04-21kmsprint: use Videomode::to_string_longTomi Valkeinen
2020-04-21videodevice: use exception to catch bad fdTomi Valkeinen
2020-04-07Merge pull request #52 from hhb/masterTomi Valkeinen
Include array
2020-04-02Include arrayHaibo Huang
2020-03-04Merge pull request #51 from matthoosier-garmin/make-pkgconfig-filesTomi Valkeinen
Supply pkg-config files
2020-03-03Supply pkg-config filesMatt Hoosier
These are customary, and pretty straightforward to offer.
2020-02-14Merge pull request #50 from jsarha/py-tests-tidss-updates-v3Tomi Valkeinen
Py tests tidss updates v3
2020-02-14global_alpha_test.py: Updates for tidssJyri Sarha
2020-02-14alpha-test.py: Updates for tidssJyri Sarha
2020-02-14ctm_test.py: Updates for tidssJyri Sarha
2020-01-29PixelFormats: cast to uin32_tTomi Valkeinen
PixelFormat is an uint32_t underneath, so use that type instead of int when casting. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2020-01-29improve hpd.pyTomi Valkeinen
2020-01-19Merge pull request #47 from matthoosier-garmin/libfmt-headers-onlyTomi Valkeinen
Link libfmt in header-only mode
2020-01-16Link libfmt in header-only modeMatt Hoosier
This saves us the trouble of having a copy of its shared library installed into the target filesystem, which would conflict with an independently packaged copy. Only the headers are needed to accomplish the usages that Kms++ makes.
2019-11-20Add configure-time option to disable libdrm-omap usageMatt Hoosier
Add an build option to allow explicitly shutting off libdrm-omap features. This is useful for packaging situations to prevent accidental unexpected features. To deactivate the drm-omap specific functionality that was activated unconditionally if present until now, use: cmake -DKMSXX_ENABLE_LIBDRMOMAP=OFF Signed-off-by: Matt Hoosier <matt.hoosier@garmin.com>
2019-11-19Set a dummy version number on the shared librariesMatt Hoosier
This makes package managers happier when the software is built as a dynamic-library. Signed-off-by: Matt Hoosier <matt.hoosier@garmin.com>
2019-11-18Allow making extframebuffer and dmabufframebuffer with modifiersMatt Hoosier
Many GPUs use bandwidth compression or tiling, and this information must be passed along to KMS when constructing the framebuffer object around the GEM handle or prime filedescriptor. Add an vector of modifiers as an optional parameter to both of these classes. Bump the minimum required version of libdrm to 2.4.17 to ensure drmModeAddFB2WithModifiers() is available. Signed-off-by: Matt Hoosier <matt.hoosier@garmin.com>
2019-11-18fbs: use std::array and .at()Tomi Valkeinen
Use std::array and .at() to get bounds checking. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-11-18fbs: check params and ensure drmModeAddFB2 is passed correctly sized arraysTomi Valkeinen
Check that parameter vectors are of the same size, and match the number of planes. Extend the vectors to 4, as drmModeAddFB2() expects to get arrays of 4 elements. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reported-by: Matt Hoosier <matt.hoosier@garmin.com>
2019-11-06Merge pull request #40 from tomba/workTomi Valkeinen
Misc improvements
2019-11-06kms++: modernize deprecated headersTomi Valkeinen
2019-11-06kms++: use 'override' all aroundTomi Valkeinen
2019-11-06card: remove useless constsTomi Valkeinen
2019-11-06pykmsbase: upgrade Blob __init__ to fix deprecation warningTomi Valkeinen
2019-11-06dumbfb: cleanup to avoid calls to virtual funcs via constructorTomi Valkeinen
2019-11-06fb: add begin_cpu_access & end_cpu_accessTomi Valkeinen
2019-11-06Split dmabuf support from ExtFramebuffer into DmabufFramebufferTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-11-06extframebuffer: add missing includeTomi Valkeinen
2019-11-06Merge pull request #39 from dreamer-dead/fix-delete-operator-upstreamTomi Valkeinen
Use correct operator delete[] to free buffers in CPUFramebuffer
2019-11-06Use [] operator delete to free CPUFramebuffer buffersdreamer.dead
2019-10-28kmsmodeview.py: update to current kms++ apiTomi Valkeinen
2019-10-28kmstest: convert to fmt::printTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-10-02card: move DRM version data to CardVersionTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-10-02Merge pull request #37 from tomba/workTomi Valkeinen
Formatting changes and testmodes.py
2019-09-26travis.yml: update to Ubuntu 18.04Tomi Valkeinen
Update travis to Ubuntu 18.04, and update the used compilers. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-09-25add testmodes.pyTomi Valkeinen
Add testmodes.py which goes through all videomodes from a connector one by one. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-09-25remove unused sformat()Tomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-09-25kmsprint: use fmt instead of printf and sformatTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-09-25wbm2m: use fmt::formatTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-09-25videomode to_string improvementsTomi Valkeinen
Add to_string_short() and to_string_long() to videomode (using the fmt library) for easy printing of videomodes. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-09-25add fmt submoduleTomi Valkeinen
Add fmt library as a submodule to make string formatting not a pain. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-09-25wbm2m: add informative printsTomi Valkeinen
2019-09-16videodevice: handle NV12 <-> NM12 translationBenoit Parrot
V4L2 and DRM differ in their interpretation of YUV420::NV12 V4L2 NV12 is a Y and UV co-located planes in a single plane buffer. DRM NV12 is a Y and UV planes presented as dual plane buffer, which is known as NM12 in V4L2. Since here we have hybrid DRM/V4L2 user space helper functions we need to translate DRM::NV12 to V4L2:NM12 pixel format back and forth to keep the data view consistent. Signed-off-by: Benoit Parrot <bparrot@ti.com>
2019-07-30README: add KMSXX_DEVICE & KMSXX_DRIVERTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-07-30kmsprint: add missing --device from usageTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-04-09add support for more pixel formatsTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>