pipeline: simple: Initialize maxQueuedRequestsDevice to 4
In order to prepare for the pipeline handler to support higher buffer counts than 4, limit the number of queued requests to this number as apps otherwise may exhaust the limit of frame contexts (see ipa::soft::kMaxFrameContexts => 16). Suggested-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Signed-off-by: Robert Mader <robert.mader@collabora.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Tested-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
8ddcff447a
commit
d82780801d
@@ -417,6 +417,7 @@ protected:
|
||||
int queueRequestDevice(Camera *camera, Request *request) override;
|
||||
|
||||
private:
|
||||
static constexpr unsigned int kMaxQueuedRequestsDevice = 4;
|
||||
static constexpr unsigned int kNumInternalBuffers = 3;
|
||||
|
||||
struct EntityData {
|
||||
@@ -1273,7 +1274,8 @@ CameraConfiguration::Status SimpleCameraConfiguration::validate()
|
||||
*/
|
||||
|
||||
SimplePipelineHandler::SimplePipelineHandler(CameraManager *manager)
|
||||
: PipelineHandler(manager), converter_(nullptr)
|
||||
: PipelineHandler(manager, kMaxQueuedRequestsDevice),
|
||||
converter_(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user