summaryrefslogtreecommitdiff
path: root/py/tests
AgeCommit message (Collapse)Author
2020-04-21py/cam.py: get w & h from cmdlineTomi Valkeinen
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-29improve hpd.pyTomi Valkeinen
2019-11-06Split dmabuf support from ExtFramebuffer into DmabufFramebufferTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2019-10-28kmsmodeview.py: update to current kms++ apiTomi Valkeinen
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-01-17Revert "py: add open_modesetting_card"Tomi Valkeinen
This reverts commit 27f1c296c4f5996227b28215400c787ea018862b.
2019-01-14py: add open_modesetting_cardTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-11-01Add wb-m2m-crop.py test to test cropping on write-backBenoit Parrot
Signed-off-by: Benoit Parrot <bparrot@ti.com>
2018-10-10Add globa_alpha_test.py for DRM per plane "alpha" property testingJyri Sarha
2018-10-10scale.py: Use atomic modesetting and other improvementsJyri Sarha
Add commandline parameters and use more sensible defaults
2018-10-10plane_csc.py: do not assume HDMI output and other improvementsJyri Sarha
2018-10-03trans-test.py: cleanupTomi Valkeinen
2018-10-03test.py: cleanupTomi Valkeinen
2018-09-24trans-test.py: fix usageTomi Valkeinen
2018-09-17py: add AtomicReq extensions and use them in test.pyTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-08-28py/tests: rename zorder to zposTomi Valkeinen
zpos is the official property. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-08-14Add plane_move.py test for testing plane move between crtcsPeter Ujfalusi
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2018-08-14trans-test.py: Aesthetic improvementsPeter Ujfalusi
Consider the screen size for the displayed objects and calculate the placement so they look similar on all screen sizes Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2018-08-10trans-test.py: am4 improvementsTomi Valkeinen
2018-08-03trans-test.py: improvementsTomi Valkeinen
2018-06-20py: sync: Moded to blob conversion method is called to_blob()Laurent Pinchart
There's no blob() method on mode objects, use to_blob(). Fixes: 66f161d0032e ("py: Add in fence test using swsync") Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-06-20py: sync: Fix event handlingLaurent Pinchart
Fancy event handling was dropped in commit 95de32aa7fbb ("py: drop the fancy event handling"). Python tests were updated, but one commit call got forgotten in the sync.py test. Fix it. Fixes: 95de32aa7fbb ("py: drop the fancy event handling") Reported-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2018-01-12alpha-test.py: fixTomi Valkeinen
2018-01-09trans-test.py: fix drawing outside the bufferTomi Valkeinen
2017-09-05py: drop the fancy event handlingTomi Valkeinen
Unfortunately the nice event handler added previously doesn't work: we may get multiple page-flip events, which would lead to unref'ing the passed python object multiple times, leading to memory corruption. I guess it's only possible to pass a plain int as user data to commit() and page_flip().
2017-06-02Merge branch 'color-features' of git://github.com/jsarha/kmsxxTomi Valkeinen
2017-05-31plane_csc.py: Test for different YCbCr encodingsJyri Sarha
2017-05-31Add ctm_test.py test for testing CRTC's CTM color matrix property.Jyri Sarha
2017-05-31cam.py: fix initial modesetTomi Valkeinen
2017-05-30omapfb: add enum Flags for OmapFBTomi Valkeinen
2017-05-30py: move Rotation enum to __init__.pyTomi Valkeinen
2017-05-24py: add rottest.pyTomi Valkeinen
Add a test tool for rotation Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-05-09py: tests: Double buffered one big buffer on all connected screensPeter Ujfalusi
The test uses Atomic Mode Setting only and moves one horizontal bar up/down in the framebuffer - which stretches through all connected displays. The flip mode can be selected with --flipmode <single, separate> : single: Page flip on all displays with one request (default) separate: Separate page flip on the displays Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2017-04-21py: Add in fence test using swsyncLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.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-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-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-13db.py: remove old codeTomi Valkeinen
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-10test.py: add dmabuf & omap optionsTomi Valkeinen
2017-01-27py/tests: hpd testTomi Valkeinen
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
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>