diff mbox series

[kms-test,08/10] kmstest: Support specifying zpos value for planes

Message ID 20220609234031.14803-9-laurent.pinchart@ideasonboard.com (mailing list archive)
State New
Delegated to: Kieran Bingham
Headers show
Series Test plane alpha and zpos control | expand

Commit Message

Laurent Pinchart June 9, 2022, 11:40 p.m. UTC
Add an optional zpos argument to the atomic_plane_set() function to
allow controlling the zpos of a plane.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 tests/kmstest.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Kieran Bingham June 29, 2022, 3:48 p.m. UTC | #1
Quoting Laurent Pinchart (2022-06-10 00:40:29)
> Add an optional zpos argument to the atomic_plane_set() function to
> allow controlling the zpos of a plane.

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  tests/kmstest.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kmstest.py b/tests/kmstest.py
> index 1c2a1b46ebe7..11cc328b5b32 100755
> --- a/tests/kmstest.py
> +++ b/tests/kmstest.py
> @@ -385,7 +385,7 @@ class KMSTest(object):
>          else:
>              return req.commit(0, True)
>  
> -    def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None, sync=False):
> +    def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None, zpos=None, sync=False):
>          req = AtomicRequest(self)
>          req.add(plane, {
>                      'FB_ID': fb.id,
> @@ -401,6 +401,8 @@ class KMSTest(object):
>          })
>          if alpha is not None:
>              req.add(plane, 'alpha', alpha)
> +        if zpos is not None:
> +            req.add(plane, 'zpos', zpos)
>          if sync:
>              return req.commit_sync()
>          else:
> -- 
> Regards,
> 
> Laurent Pinchart
>
diff mbox series

Patch

diff --git a/tests/kmstest.py b/tests/kmstest.py
index 1c2a1b46ebe7..11cc328b5b32 100755
--- a/tests/kmstest.py
+++ b/tests/kmstest.py
@@ -385,7 +385,7 @@  class KMSTest(object):
         else:
             return req.commit(0, True)
 
-    def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None, sync=False):
+    def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None, zpos=None, sync=False):
         req = AtomicRequest(self)
         req.add(plane, {
                     'FB_ID': fb.id,
@@ -401,6 +401,8 @@  class KMSTest(object):
         })
         if alpha is not None:
             req.add(plane, 'alpha', alpha)
+        if zpos is not None:
+            req.add(plane, 'zpos', zpos)
         if sync:
             return req.commit_sync()
         else: