summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/kms-test-planeposition.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/kms-test-planeposition.py b/tests/kms-test-planeposition.py
index a7cc111..0381896 100755
--- a/tests/kms-test-planeposition.py
+++ b/tests/kms-test-planeposition.py
@@ -103,6 +103,23 @@ class PlanePositionTest(kmstest.KMSTest):
self.logger.log("Moved overlay plane to %d,%d" % offset)
time.sleep(3)
+ # Disable and re-enable the plane when it is off-screen. The device is
+ # still expected to handle this gracefully.
+ ret = self.atomic_plane_disable(planes[1])
+ if ret < 0:
+ self.fail("off-screen atomic plane disable failed")
+ return
+
+ width = fb.width - 100
+ height = fb.height - 100
+ source = kmstest.Rect(0, 0, width, height)
+ destination = kmstest.Rect(mode.hdisplay, 50, width, height)
+
+ ret = self.atomic_plane_set(planes[1], crtc, source, destination, fb, sync=True)
+ if ret < 0:
+ self.fail("off-scrren atomic plane enable failed")
+ return
+
self.atomic_crtc_disable(crtc)
self.success()