diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-10 19:40:15 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 20:11:51 +0300 |
commit | 38a71ee72c47f3287c327113ce411f236cac05ef (patch) | |
tree | daa56053d11a8743a5f768d758276371370b9622 | |
parent | ded84bf2620313b701af9c88b0f6c6ada2c70eaa (diff) |
kmsprint: print plane formats
-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 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; } |