Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6578908 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh
Browse files

Camera: don't enable buffer manager for display/texture streams

These streams have their own buffer management logic.

Test: camera CTS tests
Bug: 130050659
Change-Id: I6943b10d48a2e78fc8626d20c3f6bcc3327c936c
parent d3757001
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -491,8 +491,11 @@ status_t Camera3OutputStream::configureConsumerQueueLocked() {
     * sets the mBufferManager if device version is > HAL3.2, which guarantees that the buffer
     * manager setup is skipped in below code. Note that HAL3.2 is also excluded here, as some
     * HAL3.2 devices may not support the dynamic buffer registeration.
     * Also Camera3BufferManager does not support display/texture streams as they have its own
     * buffer management logic.
     */
    if (mBufferManager != 0 && mSetId > CAMERA3_STREAM_SET_ID_INVALID) {
    if (mBufferManager != 0 && mSetId > CAMERA3_STREAM_SET_ID_INVALID &&
            !(isConsumedByHWComposer() || isConsumedByHWTexture())) {
        uint64_t consumerUsage = 0;
        getEndpointUsage(&consumerUsage);
        StreamInfo streamInfo(