kmsprint: show plane's possible crtcs
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 13 Mar 2017 09:08:55 +0000 (11:08 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 13 Mar 2017 09:08:55 +0000 (11:08 +0200)
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
utils/kmsprint.cpp

index 23aefb28d690a2470f8dd978c971b8eb56c5c049..349266827ce832e5a3569bcbd2b4deeb075cfe78 100644 (file)
@@ -101,6 +101,10 @@ static string format_plane(Plane& p)
        if (p.fb_id())
                str += sformat(" fb-id: %u", p.fb_id());
 
+       string crtcs = join<Crtc*>(p.get_possible_crtcs(), " ", [](Crtc* crtc) { return to_string(crtc->idx()); });
+
+       str += sformat(" (crtcs: %s)", crtcs.c_str());
+
        if (p.card().has_atomic()) {
                str += sformat(" %u,%u %ux%u -> %u,%u %ux%u",
                               (uint32_t)p.get_prop_value("SRC_X") >> 16,