diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-05 23:24:29 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-07 19:18:47 +0300 |
commit | 71dad75373ff9348181517909557b6b1dea9058e (patch) | |
tree | 53c4166cb37353f69c46330fa7537204611c2a30 /src | |
parent | 843048499fe1f1f8cea74838c1e3436945c1b1b7 (diff) |
cam: drm: Set per-plane offsets when creating DRM frame buffer
Now that libcamera supports per-plane offsets, pass the values to
drmModeAddFB2(). The KMS sink in cam is now capable of rendering
multi-planar formats.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cam/drm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cam/drm.cpp b/src/cam/drm.cpp index ac47b8bd..d5a75d03 100644 --- a/src/cam/drm.cpp +++ b/src/cam/drm.cpp @@ -623,7 +623,7 @@ std::unique_ptr<FrameBuffer> Device::createFrameBuffer( fb->planes_.push_back({ handle }); handles[i] = handle; - offsets[i] = 0; /* TODO */ + offsets[i] = plane.offset; ++i; } |