summaryrefslogtreecommitdiff
path: root/py/tests
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2019-10-28 13:31:30 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2019-10-28 14:18:16 +0200
commitd29da28c7f2a0212d834136fe64fb8ca96a0a235 (patch)
treeff416e88690ef7346f18c2865ce7f331bb5e447a /py/tests
parent40eb4dd6e544892e8550cf04be7b553723e79d1b (diff)
kmsmodeview.py: update to current kms++ api
Diffstat (limited to 'py/tests')
-rwxr-xr-xpy/tests/kmsmodeview.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/py/tests/kmsmodeview.py b/py/tests/kmsmodeview.py
index 355db02..0372d0a 100755
--- a/py/tests/kmsmodeview.py
+++ b/py/tests/kmsmodeview.py
@@ -293,8 +293,11 @@ def mode_to_str(mode):
mode_buttons = []
card = pykms.Card()
-conn = card.get_first_connected_connector()
-crtc = conn.get_current_crtc()
+
+res = pykms.ResourceManager(card)
+conn = res.reserve_connector()
+crtc = res.reserve_crtc(conn)
+plane = res.reserve_generic_plane(crtc)
modes = conn.get_modes()
i = 0
for m in modes: