From 7700684ff6935c462a0797d66127a921e1670e47 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 28 Aug 2018 09:40:01 +0300 Subject: py/tests: rename zorder to zpos zpos is the official property. Signed-off-by: Tomi Valkeinen --- py/tests/alpha-test.py | 2 +- py/tests/big_fb.py | 6 +++--- py/tests/plane_csc.py | 2 +- py/tests/plane_hog.py | 4 ++-- py/tests/rottest.py | 4 ++-- py/tests/test.py | 2 +- py/tests/trans-test.py | 16 ++++++++-------- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/py/tests/alpha-test.py b/py/tests/alpha-test.py index 9ae1539..e329ce4 100755 --- a/py/tests/alpha-test.py +++ b/py/tests/alpha-test.py @@ -54,7 +54,7 @@ for i in range(len(planes)): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": i, + "zpos": i, }) time.sleep(1) diff --git a/py/tests/big_fb.py b/py/tests/big_fb.py index 54de685..dc08bd2 100755 --- a/py/tests/big_fb.py +++ b/py/tests/big_fb.py @@ -89,7 +89,7 @@ for i in range(0, len(conn_list)): 'CRTC_Y': 0, 'CRTC_W': mode.hdisplay, 'CRTC_H': mode.vdisplay, - 'zorder': 0}) + 'zpos': 0}) req.commit_sync(allow_modeset = True) @@ -187,7 +187,7 @@ class bigFB_db: 'CRTC_Y': 0, 'CRTC_W': mode.hdisplay, 'CRTC_H': mode.vdisplay, - 'zorder': 0}) + 'zpos': 0}) screen_offset += mode.hdisplay @@ -219,7 +219,7 @@ class bigFB_db: 'CRTC_Y': 0, 'CRTC_W': mode.hdisplay, 'CRTC_H': mode.vdisplay, - 'zorder': 0}) + 'zpos': 0}) screen_offset += mode.hdisplay diff --git a/py/tests/plane_csc.py b/py/tests/plane_csc.py index be92c00..f810627 100755 --- a/py/tests/plane_csc.py +++ b/py/tests/plane_csc.py @@ -37,7 +37,7 @@ req.add(plane, {"FB_ID": fb.id, "CRTC_Y": 0, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": 0}) + "zpos": 0}) r = req.commit_sync() print("Plane enable request returned %d\n" % r) diff --git a/py/tests/plane_hog.py b/py/tests/plane_hog.py index 5bdc937..906c758 100755 --- a/py/tests/plane_hog.py +++ b/py/tests/plane_hog.py @@ -77,7 +77,7 @@ for plane in plane_list: "CRTC_Y": y, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z}) + "zpos": z}) r = req.commit_sync() print("Plane enable request returned %d\n" % r) @@ -125,7 +125,7 @@ for plane in reversed(plane_list): "CRTC_Y": y, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z}) + "zpos": z}) r = req.commit_sync(allow_modeset = True) print("Plane enable request returned %d\n" % r) diff --git a/py/tests/rottest.py b/py/tests/rottest.py index 8988134..c568e17 100755 --- a/py/tests/rottest.py +++ b/py/tests/rottest.py @@ -39,7 +39,7 @@ req.add(crtc, {"ACTIVE": 1, # "CRTC_Y": 0, # "CRTC_W": mode.hdisplay, # "CRTC_H": mode.vdisplay, -# "zorder": 0}) +# "zpos": 0}) req.commit_sync(allow_modeset = True) @@ -86,7 +86,7 @@ def show_rot_plane(crtc, plane, fb, rot, x_scale, y_scale): "CRTC_W": crtc_w, "CRTC_H": crtc_h, "rotation": rot, - "zorder": 2}) + "zpos": 2}) req.commit_sync(allow_modeset = True) diff --git a/py/tests/test.py b/py/tests/test.py index b7bf6bd..7bb1f28 100755 --- a/py/tests/test.py +++ b/py/tests/test.py @@ -58,7 +58,7 @@ req.add(plane, {"FB_ID": fb.id, "CRTC_Y": 0, "CRTC_W": mode.hdisplay, "CRTC_H": mode.vdisplay, - "zorder": 0}) + "zpos": 0}) req.commit_sync(allow_modeset = True) diff --git a/py/tests/trans-test.py b/py/tests/trans-test.py index 3f1e8f9..43506a4 100755 --- a/py/tests/trans-test.py +++ b/py/tests/trans-test.py @@ -86,7 +86,7 @@ def test_am5_trans_dest(): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z, + "zpos": z, }) input("press enter\n") @@ -104,7 +104,7 @@ def test_am5_trans_dest(): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z, + "zpos": z, }) input("press enter\n") @@ -153,7 +153,7 @@ def test_am5_trans_src(): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z, + "zpos": z, }) input("press enter\n") @@ -171,7 +171,7 @@ def test_am5_trans_src(): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z, + "zpos": z, }) input("press enter\n") @@ -223,7 +223,7 @@ def test_am4_normal_trans_dst(): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z, + "zpos": z, }) input("press enter\n") @@ -241,7 +241,7 @@ def test_am4_normal_trans_dst(): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z, + "zpos": z, }) input("press enter\n") @@ -289,7 +289,7 @@ def test_am4_normal_trans_src(): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z, + "zpos": z, }) input("press enter\n") @@ -307,7 +307,7 @@ def test_am4_normal_trans_src(): "SRC_H": fb.height << 16, "CRTC_W": fb.width, "CRTC_H": fb.height, - "zorder": z, + "zpos": z, }) input("press enter\n") -- cgit v1.2.3