summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-04-16 19:10:56 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-04-16 19:12:43 +0300
commit9847712d62ab55c5aff4abaf92c9093566b50cd1 (patch)
tree3ad3b1776f2caffb9fb826280a3db061fd21cf1f /py
parent944dd4fe95db2e29489818a570f010df2bccb06a (diff)
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 <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'py')
-rwxr-xr-xpy/tests/db.py1
1 files changed, 1 insertions, 0 deletions
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: