summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-10 19:40:15 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-11 20:11:51 +0300
commit38a71ee72c47f3287c327113ce411f236cac05ef (patch)
treedaa56053d11a8743a5f768d758276371370b9622 /utils
parentded84bf2620313b701af9c88b0f6c6ada2c70eaa (diff)
kmsprint: print plane formats
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 cecba5c..3b17f5b 100644
--- a/utils/kmsprint.cpp
+++ b/utils/kmsprint.cpp
@@ -115,6 +115,10 @@ static string format_plane(Plane& p)
(uint32_t)p.get_prop_value("CRTC_H"));
}
+ string fmts = join<PixelFormat>(p.get_formats(), " ", [](PixelFormat fmt) { return PixelFormatToFourCC(fmt); });
+
+ str += sformat(" (%s)", fmts.c_str());
+
return str;
}