py/tests: rename zorder to zpos
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 28 Aug 2018 06:40:01 +0000 (09:40 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 28 Aug 2018 06:40:01 +0000 (09:40 +0300)
zpos is the official property.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
py/tests/alpha-test.py
py/tests/big_fb.py
py/tests/plane_csc.py
py/tests/plane_hog.py
py/tests/rottest.py
py/tests/test.py
py/tests/trans-test.py

index 9ae1539..e329ce4 100755 (executable)
@@ -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)
index 54de685..dc08bd2 100755 (executable)
@@ -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
 
index be92c00..f810627 100755 (executable)
@@ -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)
 
index 5bdc937..906c758 100755 (executable)
@@ -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)
 
index 8988134..c568e17 100755 (executable)
@@ -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)
 
index b7bf6bd..7bb1f28 100755 (executable)
@@ -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)
 
index 3f1e8f9..43506a4 100755 (executable)
@@ -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")