From edee28d92c3268eccafb8444a4e77763abe6f87f Mon Sep 17 00:00:00 2001 From: Umang Jain Date: Thu, 16 Oct 2025 19:37:19 +0530 Subject: [PATCH] libcamera: request: Clarify ReuseBuffers flag usage with fences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Explicitly clarify the usage of Request::ReuseBuffers flag in context of buffer fences. Fences are user-supplied and are not re-cycled as part of Request::reuse(), hence document this behaviour explicitly. Signed-off-by: Umang Jain Reviewed-by: Kieran Bingham Reviewed-by: Barnabás Pőcze Signed-off-by: Barnabás Pőcze --- src/libcamera/request.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp index 26bba8f2..992d476e 100644 --- a/src/libcamera/request.cpp +++ b/src/libcamera/request.cpp @@ -327,6 +327,9 @@ void Request::Private::timeout() * Don't reuse buffers * \var Request::ReuseBuffers * Reuse the buffers that were previously added by addBuffer() + * + * \note Fences associated with the buffers are not reused. + * This flag should not be used if fences are used. */ /**