crtc: add disable_plane()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 8 Mar 2016 11:48:47 +0000 (13:48 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 8 Mar 2016 13:42:47 +0000 (15:42 +0200)
libkms++/crtc.cpp
libkms++/crtc.h

index 6d5ee02a891248903a3a399e91a761c366aa02d0..c6d79e9c7079dfed1a4a05e1ba5d908fc86c4ad2 100644 (file)
@@ -75,6 +75,11 @@ int Crtc::set_plane(Plane* plane, Framebuffer& fb,
                               conv(src_x), conv(src_y), conv(src_w), conv(src_h));
 }
 
+int Crtc::disable_plane(Plane* plane)
+{
+       return drmModeSetPlane(card().fd(), plane->id(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
+}
+
 int Crtc::page_flip(Framebuffer& fb, void *data)
 {
        return drmModePageFlip(card().fd(), id(), fb.id(), DRM_MODE_PAGE_FLIP_EVENT, data);
index ec376e45569bbf87a9eb215435ec3ec9426777ac..48baf1bb6a8933b1a15049954208911313c0802d 100644 (file)
@@ -22,6 +22,8 @@ public:
                      int32_t dst_x, int32_t dst_y, uint32_t dst_w, uint32_t dst_h,
                      float src_x, float src_y, float src_w, float src_h);
 
+       int disable_plane(Plane* plane);
+
        int page_flip(Framebuffer& fb, void *data);
        int page_flip(Framebuffer& fb, PageFlipHandlerBase* data) { return page_flip(fb, (void*)data); }