From 9847712d62ab55c5aff4abaf92c9093566b50cd1 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 16 Apr 2017 19:10:56 +0300 Subject: py: db.py: Associate plane with CRTC in atomic commit The plane might not be associated with the CRTC yet, causing the atomic commit to fail. Fix it by adding setting the plane's CRTC_ID property. Signed-off-by: Laurent Pinchart --- py/tests/db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/tests/db.py b/py/tests/db.py index 660364d..89fec30 100755 --- a/py/tests/db.py +++ b/py/tests/db.py @@ -51,6 +51,7 @@ class FlipHandler(): if card.has_atomic: ctx = pykms.AtomicReq(card) + ctx.add(crtc.primary_plane, "CRTC_ID", crtc.id) ctx.add(crtc.primary_plane, "FB_ID", fb.id) ctx.commit(self) else: -- cgit v1.2.3