diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-11-02 09:38:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-02 09:38:36 +0200 |
| commit | 8cf1bdb791f008b0728a0de37e1f1b6648521ac2 (patch) | |
| tree | 11fb83368c80c055330131e7f94952abaaff75d2 /utils | |
| parent | 0f3534d3be5750ff9cb03cb997a8efc91de07347 (diff) | |
| parent | b141ae7acc753481d050ebb16d20fc44000c55e7 (diff) | |
Merge pull request #66 from popcornmix/show_fb_format
kmsxx: Also report format of framebuffer
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/kmsprint.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp index 7469b47..017944b 100644 --- a/utils/kmsprint.cpp +++ b/utils/kmsprint.cpp @@ -120,8 +120,9 @@ static string format_plane(Plane& p) static string format_fb(Framebuffer& fb) { - return fmt::format("FB {} {}x{}", - fb.id(), fb.width(), fb.height()); + return fmt::format("FB {} {}x{} {}", + fb.id(), fb.width(), fb.height(), + PixelFormatToFourCC(fb.format())); } static string format_property(const Property* prop, uint64_t val) |
