diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-02-26 15:19:32 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-02-26 15:19:43 +0200 |
commit | 606bbb23e9a91e5d903ba5962f8702680416ed33 (patch) | |
tree | 6c3c057188927ae1d69cda89daa1ab7bd3b4b974 | |
parent | fde8e0f027a72e07b36cde9a2be9dbf79b58d780 (diff) |
kmstest.py: Add atomic_plane_disable() function to KMSTest class
The function can be used to disable planes selectively.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-x | tests/kmstest.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/kmstest.py b/tests/kmstest.py index 62f0376..e528b90 100755 --- a/tests/kmstest.py +++ b/tests/kmstest.py @@ -234,6 +234,15 @@ class KMSTest(object): else: return req.commit(0) + def atomic_plane_disable(self, plane, sync=True): + req = pykms.AtomicReq(self.card) + req.add(plane, { "FB_ID": 0, 'CRTC_ID': 0 }) + + if sync: + return req.commit_sync() + else: + return req.commit(0) + def atomic_planes_disable(self, sync=True): req = pykms.AtomicReq(self.card) for plane in self.card.planes: |