summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-13 11:08:55 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-13 11:08:55 +0200
commitdacaa0b4630695e93c1c53d65d423f5d69179a16 (patch)
tree32ce9d0b8b02774ebf07124c29a22f89b4a8e24b /utils
parent097c297e4d4e4113f942d03112d40302a00b78f8 (diff)
kmsprint: show plane's possible crtcs
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/kmsprint.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp
index 23aefb2..3492668 100644
--- a/utils/kmsprint.cpp
+++ b/utils/kmsprint.cpp
@@ -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,