From 53e6bf2c4b018ac851685f010cc6daddf63cb3a6 Mon Sep 17 00:00:00 2001 From: Takanari Hayama Date: Mon, 4 Jul 2022 11:56:31 +0900 Subject: 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 Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- tests/kmstest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3