[kms-test] [PATCH 06/10] kmstest: Support specifying alpha value for planes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add an optional alpha argument to the atomic_plane_set() function to
specify the alpha value for the plane.

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

diff --git a/tests/kmstest.py b/tests/kmstest.py
index a99bf3b89d34..1c2a1b46ebe7 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, sync=False):
+    def atomic_plane_set(self, plane, crtc, source, destination, fb, alpha=None, sync=False):
         req = AtomicRequest(self)
         req.add(plane, {
                     'FB_ID': fb.id,
@@ -399,6 +399,8 @@ class KMSTest(object):
                     'CRTC_W': destination.width,
                     'CRTC_H': destination.height,
         })
+        if alpha is not None:
+            req.add(plane, 'alpha', alpha)
         if sync:
             return req.commit_sync()
         else:
-- 
Regards,

Laurent Pinchart




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux