diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-09 23:08:49 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-06-29 21:16:23 +0300 |
commit | 88d20cdb448677e88f77313fe18f955e6b68d85e (patch) | |
tree | 8c1546169bb4f000ba7f16ad858f8e974e2fcca6 /tests/kmstest.py | |
parent | fd7c04feb459a6683e40e9ebe4d07a331b197694 (diff) |
kmstest: Support specifying zpos value for planes
Add an optional zpos argument to the atomic_plane_set() function to
allow controlling the zpos of a plane.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'tests/kmstest.py')
-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 0d9a6f8..1843237 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, alpha=None, sync=False): + def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None, zpos=None, sync=False): req = AtomicRequest(self) req.add(plane, { 'FB_ID': fb.id, @@ -403,6 +403,8 @@ class KMSTest(object): }) if alpha is not None: req.add(plane, 'alpha', alpha) + if zpos is not None: + req.add(plane, 'zpos', zpos) if sync: return req.commit_sync() else: |