diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-10-28 13:31:30 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-10-28 14:18:16 +0200 |
commit | d29da28c7f2a0212d834136fe64fb8ca96a0a235 (patch) | |
tree | ff416e88690ef7346f18c2865ce7f331bb5e447a | |
parent | 40eb4dd6e544892e8550cf04be7b553723e79d1b (diff) |
kmsmodeview.py: update to current kms++ api
-rwxr-xr-x | py/tests/kmsmodeview.py | 7 |
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: |