aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-28card: add factory function for selecting card by nameMatt Hoosier
Uses drmOpen() to do the heavy lifting.
2020-05-28card: add constructor for pre-opened FDMatt Hoosier
This is an escape hatch to let the user do whatever crazy thing he wants to obtain the DRM fd. This could be from a DRM lease, an FD passed across a Wayland protocol request, something calculated by manually walking across the set of DRI cards and selecting specific criteria, etc.
2020-05-17Merge pull request #54 from ilteroi/gcc10Tomi Valkeinen
fix compiler errors with gcc 10
2020-05-17Merge pull request #53 from matthoosier-garmin/resmgr-release-methodsTomi Valkeinen
resmgr: add release() methods
2020-05-15fix compiler errors with gcc 10Peter Trompeter
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-05-15kmstest: allow enabling output without anything connectedTomi Valkeinen
Allow kmstest to enable an output without anything connected, if the user gives a videomode. DRM framework allows this, and is needed for testing. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
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-10[automerger skipped] DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into ↵Xin Li
stag-aosp-master am: db553c2648 -s ours am: 1cab10beff am: 30b3a10668 Change-Id: Idc3735d94f7a854e4dd53c6ecf993d59679bcd69
2020-04-10[automerger skipped] DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into ↵Xin Li
stag-aosp-master am: db553c2648 -s ours am: 1cab10beff Change-Id: I414187920e787b2c1dca8038093350a839833a90
2020-04-10[automerger skipped] DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into ↵Xin Li
stag-aosp-master am: db553c2648 -s ours am skip reason: subject contains skip directive Change-Id: I25a467e8179ace6bb245c4752c11dfe167d224e2
2020-04-09DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into stag-aosp-masterandroid-r-beta-3android-r-beta-2Xin Li
Bug: 151763422 Change-Id: Ia44e9fd77e4ddaec2fe84a1d3faac935ea5b986a
2020-04-07Merge pull request #52 from hhb/masterTomi Valkeinen
Include array
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 am: 05e4989917 am: 3d79004885 Change-Id: I64848cf4196f5ce010fa415fb8d3dd8aae98f91c
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 am: 05e4989917 Change-Id: I253495f7cfb5cf19e57beae094af2076b0adbf48
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 Change-Id: I8d2df6455367a3181d17aba87781c4881c885646
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2 ↵Haibo Huang
am: e5b51255e9 Change-Id: Ib50722231c5b9cd1f3d7b60df6b7f1cb34af4476
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2 am: 57240f80a2Haibo Huang
Change-Id: Idb1bb2458e81a28f001d2169f71b1fac5969593d
2020-04-03Upgrade libkmsxx to cff8b2fd797537e36d5e16c1ac8e3303321e50b2Haibo Huang
Exempt-From-Owner-Approval: upgrade Change-Id: I6c7aae30d8ba09e05d47b03b55c58ac782097742
2020-04-02Include arrayHaibo Huang
2020-03-26Remove redundant NOTICE symbolic link. am: 6f7131a65d am: 4ac37d08f3 am: ↵Bob Badour
eda3b5c0ff am: 3a54ea5363 Change-Id: Idad254368dd089279fe8708aa5f5558f06d64f84
2020-03-26Remove redundant NOTICE symbolic link. am: 6f7131a65d am: 4ac37d08f3 am: ↵Bob Badour
eda3b5c0ff Change-Id: Ie914c5532e0e72ea9d5149d4f50488c14c55ffb4
2020-03-26Remove redundant NOTICE symbolic link. am: 6f7131a65d am: 4ac37d08f3Bob Badour
Change-Id: Id5a5f75bc5d46c760f380bce5ec8becf430524c6
2020-03-26Remove redundant NOTICE symbolic link. am: 6f7131a65d am: 4ac37d08f3Bob Badour
Change-Id: I1096e01114478439883c76580c15019815a47a96
2020-03-26Remove redundant NOTICE symbolic link. am: 6f7131a65dBob Badour
Change-Id: I7403860644e5701c589d6441e834266fc651b6fa
2020-03-25Remove redundant NOTICE symbolic link.Bob Badour
Now that http://aosp/1235427 and http://aosp/1238719 are in, NOTICE symbolic links are no longer needed. Bug: 67772237 Bug: 68860345 Test: manually built and diffed before and after system image notices Exempt-From-Owner-Approval: no owner Change-Id: I15eb41dbddf83a4c1d8e8946310dbec644f837dc
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