summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakanari Hayama <taki@igel.co.jp>2022-07-04 11:56:31 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-31 20:13:40 +0300
commit53e6bf2c4b018ac851685f010cc6daddf63cb3a6 (patch)
treea519f9c92642d7a9a183ba78b96923fa51bb7d24
parentb673ea4d97c39ee8ea80574ef3bd1ba8a59450fa (diff)
kmstest: Support specifying pixel blend mode for planes
Add an optional pixel blend mode argument to the atomic_plane_set() function to specify the pixel blend mode for the plane. Signed-off-by: Takanari Hayama <taki@igel.co.jp> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xtests/kmstest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/kmstest.py b/tests/kmstest.py
index a932bc8..4bd4e0a 100755
--- a/tests/kmstest.py
+++ b/tests/kmstest.py
@@ -415,7 +415,8 @@ class KMSTest(object):
else:
return req.commit(0, True)
- def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None, zpos=None, sync=False):
+ def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None,
+ zpos=None, blendmode=None, sync=False):
req = AtomicRequest(self)
req.add(plane, {
'FB_ID': fb.id,
@@ -433,6 +434,8 @@ class KMSTest(object):
req.add(plane, 'alpha', alpha)
if zpos is not None:
req.add(plane, 'zpos', zpos)
+ if blendmode is not None:
+ req.add(plane, 'pixel blend mode', blendmode)
if sync:
return req.commit_sync()
else: