diff options
-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; } |