@@ -0,0 +1,1224 @@
+#!/usr/bin/python3%0A%0Aimport pykms%0Aimport time%0A%0Acard = pykms.Card()%0Ares = pykms.ResourceManager(card)%0Aconn = res.reserve_connector(%22%22)%0Acrtc = res.reserve_crtc(conn)%0Amode = conn.get_default_mode()%0Amodeb = mode.to_blob(card)%0Aformat = pykms.PixelFormat.ARGB8888%0Aplane1 = res.reserve_generic_plane(crtc, format)%0Aplane2 = res.reserve_generic_plane(crtc, format)%0A%0Aprint(%22Got plane1 %25d %25d plane2 %25d %25d%22 %25%0A      (plane1.idx, plane1.id, plane2.idx, plane2.id))%0A%0Afb1 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, format);%0Apykms.draw_test_pattern(fb1);%0A%0Afb2 = pykms.DumbFramebuffer(card, mode.hdisplay %3E%3E 1, mode.vdisplay %3E%3E 1, format);%0Apykms.draw_test_pattern(fb2);%0A%0Aalpha = 0%0A%0Areq = pykms.AtomicReq(card)%0Areq.add(conn, %22CRTC_ID%22, crtc.id)%0Areq.add(crtc, %7B%22ACTIVE%22: 1,%0A%09       %22MODE_ID%22: modeb.id%7D)%0Areq.add_plane(plane1, fb1, crtc)%0Areq.add_plane(plane2, fb2, crtc)%0A%0Ar = req.commit_sync(allow_modeset = True)%0Aassert r == 0, %22Initial commit failed: %25d%22 %25 r%0A%0Awhile alpha %3C= 0xFFFF:%0A%09print(%22alpha %25d%22 %25 (alpha %3E%3E  8))%0A%09req = pykms.AtomicReq(card)%0A%09req.add(plane2, %7B%22alpha%22: alpha %7D)%0A%09r = req.commit_sync()%0A%09assert r == 0, %22alpha change commit failed: %25d%22 %25 r%0A%09alpha = alpha + 0xFF%0A%09time.sleep(0.1)%0A%0Ainput(%22press enter exit%5Cn%22)%0A

Add globa_alpha_test.py for DRM per plane "alpha" property testing