summaryrefslogtreecommitdiff
path: root/py/tests/modeset_event.py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-09-05 11:01:17 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-09-05 11:15:28 +0300
commit95de32aa7fbb1a2da547418b296f649ee4be1feb (patch)
tree50f81d2afc63357e7cfc18e2b23b1cd67e977a72 /py/tests/modeset_event.py
parentd6300fcfb0bc420ff30a6c8f44f9b5fe862cdb3d (diff)
py: drop the fancy event handling
Unfortunately the nice event handler added previously doesn't work: we may get multiple page-flip events, which would lead to unref'ing the passed python object multiple times, leading to memory corruption. I guess it's only possible to pass a plain int as user data to commit() and page_flip().
Diffstat (limited to 'py/tests/modeset_event.py')
-rwxr-xr-xpy/tests/modeset_event.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/tests/modeset_event.py b/py/tests/modeset_event.py
index 0957e51..11cfd58 100755
--- a/py/tests/modeset_event.py
+++ b/py/tests/modeset_event.py
@@ -6,7 +6,7 @@ import sys
def readdrm(fileobj, mask):
for ev in card.read_events():
- ev.data(ev)
+ eventhandler(ev)
def waitevent(sel):
events = sel.select(1)
@@ -67,7 +67,7 @@ if ret != 0:
print("Atomic test failed: %d" % ret)
sys.exit()
-req.commit(eventhandler, allow_modeset = True)
+req.commit(0, allow_modeset = True)
waitevent(sel)
input("press enter to exit\n")