aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'py/tests/db.py')
-rwxr-xr-xpy/tests/db.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/tests/db.py b/py/tests/db.py
index 660364d..f7b13eb 100755
--- a/py/tests/db.py
+++ b/py/tests/db.py
@@ -52,9 +52,9 @@ class FlipHandler():
52 if card.has_atomic: 52 if card.has_atomic:
53 ctx = pykms.AtomicReq(card) 53 ctx = pykms.AtomicReq(card)
54 ctx.add(crtc.primary_plane, "FB_ID", fb.id) 54 ctx.add(crtc.primary_plane, "FB_ID", fb.id)
55 ctx.commit(self) 55 ctx.commit()
56 else: 56 else:
57 crtc.page_flip(fb, self) 57 crtc.page_flip(fb)
58 58
59if len(sys.argv) > 1: 59if len(sys.argv) > 1:
60 conn_name = sys.argv[1] 60 conn_name = sys.argv[1]
@@ -77,7 +77,7 @@ def readdrm(fileobj, mask):
77 #print("EVENT"); 77 #print("EVENT");
78 for ev in card.read_events(): 78 for ev in card.read_events():
79 if ev.type == pykms.DrmEventType.FLIP_COMPLETE: 79 if ev.type == pykms.DrmEventType.FLIP_COMPLETE:
80 ev.data.handle_page_flip(ev.seq, ev.time) 80 fliphandler.handle_page_flip(ev.seq, ev.time)
81 81
82 82
83def readkey(fileobj, mask): 83def readkey(fileobj, mask):