android/external-libkmsxx.git
2 years agoAdd wb-m2m-crop.py test to test cropping on write-back upstream-master
Benoit Parrot [Mon, 29 Oct 2018 17:20:03 +0000 (12:20 -0500)]
Add wb-m2m-crop.py test to test cropping on write-back

Signed-off-by: Benoit Parrot <bparrot@ti.com>
2 years agowbm2m: Add selection/crop support
Benoit Parrot [Mon, 29 Oct 2018 17:18:00 +0000 (12:18 -0500)]
wbm2m: Add selection/crop support

Add crop/selection parameter support.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
2 years agovideodevice: Add selection API support
Benoit Parrot [Mon, 29 Oct 2018 17:15:09 +0000 (12:15 -0500)]
videodevice: Add selection API support

Add selection API support to the VideoSteamer class.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
2 years agowbm2m: Add resolution and format to output filename
Benoit Parrot [Mon, 29 Oct 2018 17:11:02 +0000 (12:11 -0500)]
wbm2m: Add resolution and format to output filename

To make it easier to deal with the resulting file, the filename should
show the resolution and pixel format used.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
2 years agoAdd AR12 & AR15 support
Tomi Valkeinen [Tue, 16 Oct 2018 08:35:44 +0000 (11:35 +0300)]
Add AR12 & AR15 support

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agoAdd globa_alpha_test.py for DRM per plane "alpha" property testing
Jyri Sarha [Tue, 4 Sep 2018 18:23:57 +0000 (21:23 +0300)]
Add globa_alpha_test.py for DRM per plane "alpha" property testing

2 years agoscale.py: Use atomic modesetting and other improvements
Jyri Sarha [Tue, 4 Sep 2018 13:52:04 +0000 (16:52 +0300)]
scale.py: Use atomic modesetting and other improvements

Add commandline parameters and use more sensible defaults

2 years agoplane_csc.py: do not assume HDMI output and other improvements
Jyri Sarha [Mon, 3 Sep 2018 15:11:10 +0000 (18:11 +0300)]
plane_csc.py: do not assume HDMI output and other improvements

2 years agotrans-test.py: cleanup
Tomi Valkeinen [Tue, 25 Sep 2018 07:09:26 +0000 (10:09 +0300)]
trans-test.py: cleanup

2 years agotest.py: cleanup
Tomi Valkeinen [Tue, 25 Sep 2018 07:02:02 +0000 (10:02 +0300)]
test.py: cleanup

2 years agoAdd Android.bp file to build with AOSP
Andrew F. Davis [Thu, 26 Jul 2018 20:21:38 +0000 (15:21 -0500)]
Add Android.bp file to build with AOSP

Signed-off-by: Andrew F. Davis <afd@ti.com>
2 years agoAdd include of <cerrno> to various files
Andrew F. Davis [Thu, 26 Jul 2018 20:21:38 +0000 (15:21 -0500)]
Add include of <cerrno> to various files

This is needed for building with some version of some
compilers where it is not automatically included with
the existing include set (clang).

Signed-off-by: Andrew F. Davis <afd@ti.com>
2 years agopy: fix __atomic_req_add_plane when crtc = None
Tomi Valkeinen [Mon, 24 Sep 2018 12:37:30 +0000 (15:37 +0300)]
py: fix __atomic_req_add_plane when crtc = None

2 years agotrans-test.py: fix usage
Tomi Valkeinen [Mon, 24 Sep 2018 10:58:12 +0000 (13:58 +0300)]
trans-test.py: fix usage

2 years agopy: add AtomicReq extensions and use them in test.py
Tomi Valkeinen [Mon, 17 Sep 2018 14:33:47 +0000 (17:33 +0300)]
py: add AtomicReq extensions and use them in test.py

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agokmstest: give an error if master permissions could not be set
Tomi Valkeinen [Mon, 10 Sep 2018 08:03:30 +0000 (11:03 +0300)]
kmstest: give an error if master permissions could not be set

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agokmstest: don't use "unknown" connectors by default
Tomi Valkeinen [Mon, 3 Sep 2018 12:14:47 +0000 (15:14 +0300)]
kmstest: don't use "unknown" connectors by default

When using kmstest without parameters, use only connectors in Connected
state, not in Unknown state. To use Uknown state connectors, the
connector must be specified in the cmdline.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agokmsprint: use connector_status
Tomi Valkeinen [Tue, 28 Aug 2018 07:31:53 +0000 (10:31 +0300)]
kmsprint: use connector_status

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agoconnector: add connector_status()
Tomi Valkeinen [Tue, 28 Aug 2018 07:31:41 +0000 (10:31 +0300)]
connector: add connector_status()

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agopy/tests: rename zorder to zpos
Tomi Valkeinen [Tue, 28 Aug 2018 06:40:01 +0000 (09:40 +0300)]
py/tests: rename zorder to zpos

zpos is the official property.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agokmstest: fix "Could not find available crtc" when crtc was not connected.
Tomi Valkeinen [Thu, 23 Aug 2018 10:45:30 +0000 (13:45 +0300)]
kmstest: fix "Could not find available crtc" when crtc was not connected.

If a connector doesn't already have a crtc, we might get "Could not find
available crtc" error from kmstest as it fails to search for the crtc.

Fix this.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agoRevert "testpat: remove threaded drawing"
Tomi Valkeinen [Thu, 23 Aug 2018 10:11:41 +0000 (13:11 +0300)]
Revert "testpat: remove threaded drawing"

This reverts commit 33246d9b5fb0347aabd62caac1da03440f9e1634.

Add threaded drawing back, but have it behind a CMAKE variable so that
it can easily be turned off.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agoAdd plane_move.py test for testing plane move between crtcs
Peter Ujfalusi [Tue, 7 Aug 2018 11:56:06 +0000 (14:56 +0300)]
Add plane_move.py test for testing plane move between crtcs

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2 years agotrans-test.py: Aesthetic improvements
Peter Ujfalusi [Tue, 14 Aug 2018 08:38:05 +0000 (11:38 +0300)]
trans-test.py: Aesthetic improvements

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>
2 years agotrans-test.py: am4 improvements
Tomi Valkeinen [Fri, 10 Aug 2018 12:54:43 +0000 (15:54 +0300)]
trans-test.py: am4 improvements

2 years agotrans-test.py: improvements
Tomi Valkeinen [Fri, 3 Aug 2018 09:31:25 +0000 (12:31 +0300)]
trans-test.py: improvements

2 years agoadd a simple draw_circle()
Tomi Valkeinen [Fri, 3 Aug 2018 11:54:25 +0000 (14:54 +0300)]
add a simple draw_circle()

2 years agokmstest: set props in legacy modesetting too
Tomi Valkeinen [Fri, 29 Jun 2018 10:26:00 +0000 (13:26 +0300)]
kmstest: set props in legacy modesetting too

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agodrmpropobject: add set_prop_value(Property* prop, uint64_t value)
Tomi Valkeinen [Fri, 29 Jun 2018 10:25:23 +0000 (13:25 +0300)]
drmpropobject: add set_prop_value(Property* prop, uint64_t value)

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agokmstest: print property ids
Tomi Valkeinen [Fri, 29 Jun 2018 08:08:19 +0000 (11:08 +0300)]
kmstest: print property ids

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2 years agopy: sync: Moded to blob conversion method is called to_blob()
Laurent Pinchart [Wed, 20 Jun 2018 02:56:12 +0000 (05:56 +0300)]
py: sync: Moded to blob conversion method is called to_blob()

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>
2 years agopy: sync: Fix event handling
Laurent Pinchart [Wed, 20 Jun 2018 02:56:11 +0000 (05:56 +0300)]
py: sync: Fix event handling

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>
2 years agotestpat: remove threaded drawing
Tomi Valkeinen [Tue, 20 Mar 2018 13:11:23 +0000 (15:11 +0200)]
testpat: remove threaded drawing

Threading causes easily issues with (at least) static linking. Let's
just remove it as it's not really that important.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agoAdd DPI encoder
Tomi Valkeinen [Mon, 2 Apr 2018 09:09:21 +0000 (12:09 +0300)]
Add DPI encoder

3 years agoUse full license text to help github figure out the license
Tomi Valkeinen [Fri, 12 Jan 2018 12:54:56 +0000 (14:54 +0200)]
Use full license text to help github figure out the license

3 years agoalpha-test.py: fix
Tomi Valkeinen [Fri, 12 Jan 2018 12:55:09 +0000 (14:55 +0200)]
alpha-test.py: fix

3 years agotrans-test.py: fix drawing outside the buffer
Tomi Valkeinen [Tue, 9 Jan 2018 10:53:08 +0000 (12:53 +0200)]
trans-test.py: fix drawing outside the buffer

3 years agoadd safeguards to draw_*_pixel() to prevent memory corruption
Tomi Valkeinen [Tue, 9 Jan 2018 10:50:29 +0000 (12:50 +0200)]
add safeguards to draw_*_pixel() to prevent memory corruption

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agokmstest: Separate reservation phase from command line parsing
Jyri Sarha [Fri, 5 Jan 2018 13:39:48 +0000 (15:39 +0200)]
kmstest: Separate reservation phase from command line parsing

In the new order the planes are not reserved before the whole command
line is parsed. This way we know the color format of the framebuffer
that is going to be on the reserved plane and we can select a plane
that supports the format. After this patch kmstest makes no distinction
between primary and overlay planes if atomic mode setting is
supported. If no plane is specified then a default plane, matching the
screen size is created.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agokmstest: Implement simplistic propery support behind -P flag.
Jyri Sarha [Fri, 5 Jan 2018 09:17:40 +0000 (11:17 +0200)]
kmstest: Implement simplistic propery support behind -P flag.

Non atomic modesetting is not supported and there is no translation
from various property types to unsigned 64-bit integer. Instead the
property values are simply converted from string with stoull(str, 0, 0).

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agopy: pyvid: Provide stream_off binding
Kieran Bingham [Wed, 13 Dec 2017 23:10:10 +0000 (23:10 +0000)]
py: pyvid: Provide stream_off binding

The videodevice module defines a stream_off function call, but this is
not available in the python bindings interface.

Provide the binding of VideoStreamer::stream_off.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agovideodevice: Fix minor spacing
Kieran Bingham [Wed, 13 Dec 2017 23:10:09 +0000 (23:10 +0000)]
videodevice: Fix minor spacing

Provide a space between the return type and the function definition

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agopy: add convert_vector helper
Tomi Valkeinen [Fri, 8 Dec 2017 06:57:56 +0000 (08:57 +0200)]
py: add convert_vector helper

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agopy: Add Card crtcs and encoders properties back to the Python bindings
Laurent Pinchart [Thu, 7 Dec 2017 18:20:54 +0000 (20:20 +0200)]
py: Add Card crtcs and encoders properties back to the Python bindings

Commit 706a44abb3aa ("Update to latest pybind11") removed the crtcs and
encoders properties from the Card class. Add them back by wrapping the
associated C++ methods manually due to a limitation of pybind11.

Fixes: 706a44abb3aa ("Update to latest pybind11")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agoFix Python bindings for Connector::get_possible_crtcs() method
Laurent Pinchart [Thu, 7 Dec 2017 16:06:40 +0000 (18:06 +0200)]
Fix Python bindings for Connector::get_possible_crtcs() method

The method returns an std::vector of DRMObject, which isn't supported by
the latest pybind11 as explained in commit 706a44abb3aa. Fix it by
wrapping the method manually.

Fixes: 706a44abb3aa ("Update to latest pybind11")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agopykms: keep Card alive until Blob is gone
Tomi Valkeinen [Fri, 24 Nov 2017 08:51:31 +0000 (10:51 +0200)]
pykms: keep Card alive until Blob is gone

3 years agotravis: add gcc6 & gcc7
Tomi Valkeinen [Fri, 24 Nov 2017 08:11:57 +0000 (10:11 +0200)]
travis: add gcc6 & gcc7

3 years agoUpdate to latest pybind11
Tomi Valkeinen [Fri, 24 Nov 2017 07:50:42 +0000 (09:50 +0200)]
Update to latest pybind11

Update to latest pybind11 HEAD. We can't use the latest tag (v2.2.0) as
it has a regression.

There were two problems when updating:

1) Difficulty in managing DrmObject derived classes

Most of the DrmObjects are owned by Card, and can't be allocated or
freed, but a few of them are allocated and freed by the user. For the
former, we need to use unique_ptr with py::nodelete, but that prevents
the latter from working.

The solution was to not tell the python that the latter classes derive
from DrmObject.

This seems to be missing feature in pybind11, but I think we can live
with it.

2) DrmObjects in STL containers

vector<T> where T is a DrmObject derived class doesn't work. We need to
have a manual wrapper to return vector<unique_ptr<T, py::nodelete>>
instead.

This also seems to be a pybind11 missing feature.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agoresman: use set<> instead of vector<>
Tomi Valkeinen [Wed, 22 Nov 2017 08:09:30 +0000 (10:09 +0200)]
resman: use set<> instead of vector<>

3 years agokmstest: use resman
Tomi Valkeinen [Wed, 22 Nov 2017 08:05:53 +0000 (10:05 +0200)]
kmstest: use resman

3 years agokmstest: rename ObjectType to ArgType
Tomi Valkeinen [Mon, 23 Oct 2017 08:11:17 +0000 (11:11 +0300)]
kmstest: rename ObjectType to ArgType

3 years agowbcap: support saving to file
Tomi Valkeinen [Tue, 24 Oct 2017 07:58:20 +0000 (10:58 +0300)]
wbcap: support saving to file

3 years agoutils: wbcap interlace support
Tomi Valkeinen [Fri, 20 Oct 2017 12:06:28 +0000 (15:06 +0300)]
utils: wbcap interlace support

3 years agoutils: improve wbcap
Tomi Valkeinen [Fri, 20 Oct 2017 10:07:34 +0000 (13:07 +0300)]
utils: improve wbcap

3 years agoCrtc: add set_mode() which doesn't take a fb
Tomi Valkeinen [Fri, 20 Oct 2017 08:33:53 +0000 (11:33 +0300)]
Crtc: add set_mode() which doesn't take a fb

3 years agoConnector: improve get_mode(string)
Tomi Valkeinen [Fri, 20 Oct 2017 08:33:31 +0000 (11:33 +0300)]
Connector: improve get_mode(string)

3 years agoCard: add disable_all()
Tomi Valkeinen [Fri, 20 Oct 2017 08:32:40 +0000 (11:32 +0300)]
Card: add disable_all()

3 years agoVideomode: add to_string()
Tomi Valkeinen [Fri, 20 Oct 2017 08:32:18 +0000 (11:32 +0300)]
Videomode: add to_string()

3 years agokmscube: update drm resource allocation
Tomi Valkeinen [Tue, 10 Oct 2017 08:16:19 +0000 (11:16 +0300)]
kmscube: update drm resource allocation

3 years agokmscube: drop non-atomic support
Tomi Valkeinen [Tue, 10 Oct 2017 08:06:46 +0000 (11:06 +0300)]
kmscube: drop non-atomic support

3 years agokmscapture: fix capture videomode heuristic
Tomi Valkeinen [Tue, 3 Oct 2017 09:45:59 +0000 (12:45 +0300)]
kmscapture: fix capture videomode heuristic

3 years agokmscapture: clean up fb handling
Tomi Valkeinen [Tue, 3 Oct 2017 09:37:59 +0000 (12:37 +0300)]
kmscapture: clean up fb handling

3 years agokmscapture: fix v4l buftype
Tomi Valkeinen [Mon, 2 Oct 2017 08:55:52 +0000 (11:55 +0300)]
kmscapture: fix v4l buftype

3 years agoRework framebuffer classes
Tomi Valkeinen [Tue, 3 Oct 2017 09:32:52 +0000 (12:32 +0300)]
Rework framebuffer classes

Drop (I)MappedFramebuffer, as it doesn't really provide any value, and
have most of the methods be present in IFramebuffer with default
exception throwing implementation.

This gives us simpler way to use the framebuffers, as almost always we
can just use a pointer to IFramebuffer.

3 years agocard: fix compile warning
Tomi Valkeinen [Tue, 3 Oct 2017 09:32:49 +0000 (12:32 +0300)]
card: fix compile warning

3 years agokmscube: compile fix
Tomi Valkeinen [Tue, 3 Oct 2017 09:11:07 +0000 (12:11 +0300)]
kmscube: compile fix

3 years agoadd ExtFramebuffer::prime_fd
Tomi Valkeinen [Mon, 2 Oct 2017 09:03:07 +0000 (12:03 +0300)]
add ExtFramebuffer::prime_fd

3 years agopy: drop the fancy event handling
Tomi Valkeinen [Tue, 5 Sep 2017 08:01:17 +0000 (11:01 +0300)]
py: drop the fancy event handling

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().

3 years agokmstest: fix --sync mode
Tomi Valkeinen [Mon, 4 Sep 2017 12:37:46 +0000 (15:37 +0300)]
kmstest: fix --sync mode

DRM sends page flips for each crtc in a commit. kmstest expected to get
a single flip event for a single commit, which caused --sync not to work
with two displays.

Fix this by making kmstest skip the first flip event.

3 years agokmstest: add help text about env variables
Tomi Valkeinen [Mon, 4 Sep 2017 06:28:49 +0000 (09:28 +0300)]
kmstest: add help text about env variables

3 years agokmstest: fix error in help text
Tomi Valkeinen [Fri, 4 Aug 2017 09:41:38 +0000 (12:41 +0300)]
kmstest: fix error in help text

3 years agokmsprint: print connectors even if disconnected
Tomi Valkeinen [Fri, 30 Jun 2017 07:01:09 +0000 (10:01 +0300)]
kmsprint: print connectors even if disconnected

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agotestpat: fix the location of second diagonal line
Tomi Valkeinen [Mon, 5 Jun 2017 07:19:38 +0000 (10:19 +0300)]
testpat: fix the location of second diagonal line

3 years agoMerge branch 'color-features' of git://github.com/jsarha/kmsxx
Tomi Valkeinen [Fri, 2 Jun 2017 09:14:11 +0000 (12:14 +0300)]
Merge branch 'color-features' of git://github.com/jsarha/kmsxx

3 years agoplane_csc.py: Test for different YCbCr encodings
Jyri Sarha [Fri, 12 May 2017 07:44:21 +0000 (10:44 +0300)]
plane_csc.py: Test for different YCbCr encodings

3 years agoAdd DrmPropObject.get_prop() and Property.enums to pykmsbase.cpp.
Jyri Sarha [Wed, 31 May 2017 14:48:52 +0000 (17:48 +0300)]
Add DrmPropObject.get_prop() and Property.enums to pykmsbase.cpp.

3 years agoAdd different YCbCr encodings.
Jyri Sarha [Tue, 9 May 2017 14:37:15 +0000 (17:37 +0300)]
Add different YCbCr encodings.

3 years agoAdd Crtc::disable_mode() to pykmsbase.cpp.
Jyri Sarha [Fri, 24 Mar 2017 20:45:31 +0000 (22:45 +0200)]
Add Crtc::disable_mode() to pykmsbase.cpp.

3 years agoAdd ctm_test.py test for testing CRTC's CTM color matrix property.
Jyri Sarha [Fri, 24 Mar 2017 20:47:53 +0000 (22:47 +0200)]
Add ctm_test.py test for testing CRTC's CTM color matrix property.

3 years agocam.py: fix initial modeset
Tomi Valkeinen [Wed, 31 May 2017 09:42:51 +0000 (12:42 +0300)]
cam.py: fix initial modeset

3 years agoomapfb: add flags for memory alloc
Tomi Valkeinen [Tue, 30 May 2017 10:57:53 +0000 (13:57 +0300)]
omapfb: add flags for memory alloc

3 years agoomapfb: add enum Flags for OmapFB
Tomi Valkeinen [Tue, 30 May 2017 10:56:28 +0000 (13:56 +0300)]
omapfb: add enum Flags for OmapFB

3 years agopy: move Rotation enum to __init__.py
Tomi Valkeinen [Tue, 30 May 2017 10:54:43 +0000 (13:54 +0300)]
py: move Rotation enum to __init__.py

3 years agopy: add rottest.py
Tomi Valkeinen [Thu, 18 May 2017 07:39:39 +0000 (10:39 +0300)]
py: add rottest.py

Add a test tool for rotation

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agoomapfb: add TILER support
Tomi Valkeinen [Thu, 18 May 2017 10:21:07 +0000 (13:21 +0300)]
omapfb: add TILER support

Add TILER rotation support for omapframebuffer.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agotestpat: white box in top left corner
Tomi Valkeinen [Wed, 10 May 2017 09:45:21 +0000 (12:45 +0300)]
testpat: white box in top left corner

3 years agodraw_char: use black bg for yuv
Tomi Valkeinen [Thu, 18 May 2017 10:16:49 +0000 (13:16 +0300)]
draw_char: use black bg for yuv

3 years agopykms: add videomode related features
Tomi Valkeinen [Mon, 27 Mar 2017 12:20:09 +0000 (15:20 +0300)]
pykms: add videomode related features

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agopykmsutil: add draw_text()
Tomi Valkeinen [Tue, 16 May 2017 12:10:10 +0000 (15:10 +0300)]
pykmsutil: add draw_text()

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 years agodraw_rect: support yuv modes
Tomi Valkeinen [Wed, 12 Apr 2017 07:20:16 +0000 (10:20 +0300)]
draw_rect: support yuv modes

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
4 years agopy: tests: Double buffered one big buffer on all connected screens
Peter Ujfalusi [Fri, 7 Apr 2017 10:29:26 +0000 (13:29 +0300)]
py: tests: Double buffered one big buffer on all connected screens

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>
4 years agopy: omapfb: add missing properties
Tomi Valkeinen [Thu, 27 Apr 2017 10:58:42 +0000 (13:58 +0300)]
py: omapfb: add missing properties

4 years agoconnector: add DPI connector type
Tomi Valkeinen [Thu, 27 Apr 2017 10:01:12 +0000 (13:01 +0300)]
connector: add DPI connector type

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
4 years agoAdd Connector.connected to pykmsbase
Peter Ujfalusi [Fri, 7 Apr 2017 10:26:12 +0000 (13:26 +0300)]
Add Connector.connected to pykmsbase

It can be used to check if the connector is connected or not

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
4 years agoReturn primary plane already associated with the CRTC if it exists
Laurent Pinchart [Sun, 16 Apr 2017 16:07:40 +0000 (19:07 +0300)]
Return primary plane already associated with the CRTC if it exists

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>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
4 years agopy: Add in fence test using swsync
Laurent Pinchart [Fri, 21 Apr 2017 10:46:57 +0000 (13:46 +0300)]
py: Add in fence test using swsync

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
4 years agotest.py: use atomic modesetting
Tomi Valkeinen [Mon, 10 Apr 2017 08:17:20 +0000 (11:17 +0300)]
test.py: use atomic modesetting

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
4 years agotrans-test.py: fix use of colors
Tomi Valkeinen [Fri, 7 Apr 2017 08:15:35 +0000 (11:15 +0300)]
trans-test.py: fix use of colors

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
4 years agoresmgr: fix reserve_plane()
Tomi Valkeinen [Thu, 30 Mar 2017 11:35:06 +0000 (14:35 +0300)]
resmgr: fix reserve_plane()

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>
4 years agoresmgr: add sanity checks
Tomi Valkeinen [Fri, 24 Mar 2017 08:07:54 +0000 (10:07 +0200)]
resmgr: add sanity checks

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>