summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/kmstest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kmstest.py b/tests/kmstest.py
index ac95456..0d9a6f8 100755
--- a/tests/kmstest.py
+++ b/tests/kmstest.py
@@ -387,7 +387,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,
@@ -401,6 +401,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: