diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-10 00:42:32 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-29 21:16:23 +0300 |
commit | 8f3a06667fe7ec35cc399b4e207af22140dd7743 (patch) | |
tree | eca3686f29351008b942b1e14256b1cc4aa91e0b /tests | |
parent | 4d15a071e3ee73f769087859c04e0b7de5ac36dd (diff) |
kmstest: Support specifying alpha value for planes
Add an optional alpha argument to the atomic_plane_set() function to
specify the alpha value for the plane.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/kmstest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kmstest.py b/tests/kmstest.py index ac95456..0d9a6f8 100755 --- a/tests/kmstest.py +++ b/tests/kmstest.py @@ -387,7 +387,7 @@ class KMSTest(object): else: return req.commit(0, True) - def atomic_plane_set(self, plane, crtc, source, destination, fb, sync=False): + def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None, sync=False): req = AtomicRequest(self) req.add(plane, { 'FB_ID': fb.id, @@ -401,6 +401,8 @@ class KMSTest(object): 'CRTC_W': destination.width, 'CRTC_H': destination.height, }) + if alpha is not None: + req.add(plane, 'alpha', alpha) if sync: return req.commit_sync() else: |