[libcamera-devel] [PATCH v2 22/27] cam: drm: Set per-plane offsets when creating DRM frame buffer
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Mon Sep 6 04:00:55 CEST 2021
Now that libcamera supports per-plane offsets, pass the values to
drmModeAddFB2().
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/cam/drm.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cam/drm.cpp b/src/cam/drm.cpp
index ac47b8bd3287..d5a75d039fd8 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;
}
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list