diff options
author | Tomi Valkeinen | 2017-03-13 04:08:55 -0500 |
---|---|---|
committer | Tomi Valkeinen | 2017-03-13 04:08:55 -0500 |
commit | dacaa0b4630695e93c1c53d65d423f5d69179a16 (patch) | |
tree | 32ce9d0b8b02774ebf07124c29a22f89b4a8e24b /utils | |
parent | 097c297e4d4e4113f942d03112d40302a00b78f8 (diff) | |
download | external-kmsxx-dacaa0b4630695e93c1c53d65d423f5d69179a16.tar.gz external-kmsxx-dacaa0b4630695e93c1c53d65d423f5d69179a16.tar.xz external-kmsxx-dacaa0b4630695e93c1c53d65d423f5d69179a16.zip |
kmsprint: show plane's possible crtcs
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/kmsprint.cpp | 4 |
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) | |||
101 | if (p.fb_id()) | 101 | if (p.fb_id()) |
102 | str += sformat(" fb-id: %u", p.fb_id()); | 102 | str += sformat(" fb-id: %u", p.fb_id()); |
103 | 103 | ||
104 | string crtcs = join<Crtc*>(p.get_possible_crtcs(), " ", [](Crtc* crtc) { return to_string(crtc->idx()); }); | ||
105 | |||
106 | str += sformat(" (crtcs: %s)", crtcs.c_str()); | ||
107 | |||
104 | if (p.card().has_atomic()) { | 108 | if (p.card().has_atomic()) { |
105 | str += sformat(" %u,%u %ux%u -> %u,%u %ux%u", | 109 | str += sformat(" %u,%u %ux%u -> %u,%u %ux%u", |
106 | (uint32_t)p.get_prop_value("SRC_X") >> 16, | 110 | (uint32_t)p.get_prop_value("SRC_X") >> 16, |