summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-20kmscapture: Add support for cached buffersomap/cacheLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-16kmstest: Add support for cached buffersLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-16py: db.py: Add support for cached buffersLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-16omap: Add support for cached GEM objectsLaurent Pinchart
OMAP buffers are mapped to userspace in write-combining mode by default. Add support for cached mappings. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-16Remove libdrm_omap dependencyLaurent Pinchart
The library is just a wrapper around ioctls. It doesn't provide much value, and its API is marked as experimental and should thus not be expected to be stable. As third party library dependencies are always painful for distributors and packagers, use the ioctls directly for now. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-16py: db.py: Associate plane with CRTC in atomic commitLaurent Pinchart
The plane might not be associated with the CRTC yet, causing the atomic commit to fail. Fix it by adding setting the plane's CRTC_ID property. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-16Return primary plane already associated with the CRTC if it existsLaurent Pinchart
The Crtc::get_primary_plane() method returns the first primary plane that supports the CRTC. While being correct, this could lead to multiple primary planes being associated with the CRTC, which can confuse applications. To avoid that, return insead the primary plane already associated with the CRTC if one exists, otherwise keep the current behaviour. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-15py: Add in fence test using swsyncLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-15py: Expose Videomode::to_blob methodLaurent Pinchart
The Videomode::to_blob method is needed for atomic modesetting. Expose it through the Python bindings. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-15Add SW sync supportLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-04-10test.py: use atomic modesettingTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-04-07trans-test.py: fix use of colorsTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-30resmgr: fix reserve_plane()Tomi Valkeinen
reserve_plane() had inverted check, and looked for any plane type but the one that was requested. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-24resmgr: add sanity checksTomi Valkeinen
Add sanity checks to reserve_* methods, and return null if the give connector/crtc is null. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-21Merge branch 'universal-planes2' of git://github.com/jsarha/kmsxxTomi Valkeinen
2017-03-21kmstest: check return values from reserve_*Tomi Valkeinen
2017-03-21utils: add EXIT_IFTomi Valkeinen
2017-03-20Add plane_hog.pyJyri Sarha
plane_hog.py gets all possible planes for default connector's crtc, enables them one by one, enables hdmi connector's crtc (if available) and moves the planes there on by one.
2017-03-20pykms/pykmsutil.cpp: Add binding for reserve_generic_plane()Jyri Sarha
2017-03-20ResourceManager: reserve_generic_plane() for either primary or overlayJyri Sarha
2017-03-17Add modeset_event.pyJyri Sarha
modeset_event.py tests committing a full mode set asynchronously and receiving a flip event about it. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-17Add a simple and hackish plane scaling test.Jyri Sarha
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-17py: add DrmObject.idxTomi Valkeinen
2017-03-16Add color format related methods and memebers to pykmsbase.Jyri Sarha
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-16Add Videomode::to_blob method to pykmsbase.Jyri Sarha
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-13kmsprint: show plane's possible crtcsTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-13plane: add get_possible_crtcs()Tomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-13py: fix AtomicReq.commit() return valueTomi Valkeinen
2017-03-13db.py: remove old codeTomi Valkeinen
2017-03-10kmstest: Add optional argument to the flip option to limit the flipsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-08New event handlingTomi Valkeinen
The current event handling relies on the PageFlipHandlerBase class which has to be implemented on the python side. This patch implements a more versatile event handling, where any python object can be passed as data to the commit or page flip, and it's up to the python implementation to decide what to do with that data when receiving the event. Note that when doing the commit or page_flip, the ref count of the given python object is incremented to keep it alive. The ref count is decremented when reading the events with the new helper method card.read_events(). This helper _has_ to be used to ensure the objects get released properly. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-03-03py: db.py: Add command line argument to specify connectorLaurent Pinchart
When a command line argument is present, its value is used as a connector name that the script will try to use. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-02-13py: Expose AtomicReq::add(std::map<>) methodLaurent Pinchart
Only the AtomiqReq::add version that takes a single property is currently exposed through the Python bindings. Expose the add method that takes a list of properties as well. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-02-13kmsview: Add connector command line argumentLaurent Pinchart
The argument allows specifying which connector to display on. When not set, the current behaviour is preserved. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-02-10test.py: add dmabuf & omap optionsTomi Valkeinen
2017-02-10py: add ExtFramebufferTomi Valkeinen
2017-02-10omapfb: add constructor with fourccTomi Valkeinen
2017-02-10ExtFb: pass params in vectorsTomi Valkeinen
2017-02-10py: add DumbFb propertiesTomi Valkeinen
2017-02-10improve ExtFbTomi Valkeinen
Inherit MappedFramebuffer and add map()
2017-02-10ExtFb: remove legacy constructorTomi Valkeinen
2017-02-10PlaneType to bitmaskTomi Valkeinen
2017-02-10kmstest: remove get_default_connector()Tomi Valkeinen
2017-02-10use reserve_connector from ResourceManagerTomi Valkeinen
2017-02-10kmstest: Add --view optionTomi Valkeinen
2017-02-10mappedframebuffer.h: add missing includeTomi Valkeinen
2017-02-10fix race issue in threaded test pattern drawTomi Valkeinen
2017-02-06Support python2 based pykms bindingAlejandro Hernandez
Previously only binding with python3 was supported, this patch allows compilation of pykms with python3 or python2. When compiling with python2 some of the python scripts located in the py/test will not work since they import python3 only modules Signed-off-by: Alejandro Hernandez <ajhernandez@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-02-06Add README.md to custom targetsTomi Valkeinen
2017-01-27README: add note about pythonTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>