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

Commit ec1f230d authored by sm1021.shin's avatar sm1021.shin
Browse files

Add default maxBufferCount in GraphicBufferProducer



Some modules that inherit and use IGraphicBufferProducer
don't set maxBufferCount. As a result, the maxBufferCount value
that has been queried in libvulkan is 0,
and the creation of swapchain fails.

Therefore, the default value (64) is set to maxBufferCount.

Test: build, Mcts
Bug: 376142095

Change-Id: Ie5c5f747ecd6c15ffae80cc32b9f5a90b1a44df3
Signed-off-by: default avatarsm1021.shin <sm1021.shin@samsung.com>
parent e57dca01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -403,7 +403,7 @@ public:
        uint64_t nextFrameNumber{0};
        FrameEventHistoryDelta frameTimestamps;
        bool bufferReplaced{false};
        int maxBufferCount{0};
        int maxBufferCount{BufferQueueDefs::NUM_BUFFER_SLOTS};
        status_t result{NO_ERROR};
    };