From 606bbb23e9a91e5d903ba5962f8702680416ed33 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 26 Feb 2018 15:19:32 +0200 Subject: kmstest.py: Add atomic_plane_disable() function to KMSTest class The function can be used to disable planes selectively. Signed-off-by: Laurent Pinchart --- tests/kmstest.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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: -- cgit v1.2.3