diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2026-03-20 09:20:58 +0200 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2026-03-20 09:20:58 +0200 |
| commit | 4a7836fe42a7bc0664d912246c5fbf17f240d152 (patch) | |
| tree | b81a8c1267712bf05fbc3bfb5b4ce4fabf797474 /kms++ | |
| parent | e300a20e6055de858b8869772fd06682b8644e4f (diff) | |
DumbFramebuffer: Fix plane size calculations for multiplane formats
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'kms++')
| -rw-r--r-- | kms++/src/dumbframebuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++/src/dumbframebuffer.cpp b/kms++/src/dumbframebuffer.cpp index 6b623b3..421dac4 100644 --- a/kms++/src/dumbframebuffer.cpp +++ b/kms++/src/dumbframebuffer.cpp @@ -36,7 +36,7 @@ DumbFramebuffer::DumbFramebuffer(Card& card, uint32_t width, uint32_t height, Pi for (int i = 0; i < format_info.num_planes; ++i) { FramebufferPlane& plane = m_planes.at(i); - auto [w, h, bpp] = format_info.dumb_size(width, height); + auto [w, h, bpp] = format_info.dumb_size(width, height, i); /* create dumb buffer */ struct drm_mode_create_dumb creq = drm_mode_create_dumb(); |
