kmsprint: print plane formats
[android/external-libkmsxx.git] / utils / kmsprint.cpp
index cecba5ca728edbc0ef55ba9c8f833769c15b7344..3b17f5bde21725eb8a2cf029187ce3e8aae9d565 100644 (file)
@@ -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;
 }