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

Commit b6c6ad48 authored by Steven Thomas's avatar Steven Thomas
Browse files

Fix "invalid buffer slot" hardware composer error

For virtual displays we weren't calling setClientTargetSlotCount(),
leading to "invalid buffer slot" errors from the hardware composer
service.

Bug: 69814692

Test: Observed the "invalid buffer slot" errors are gone.

Change-Id: I2268acd7d59dcbe2a943ddf388d88632a8b81b5d
(cherry picked from commit 8f1110776981bf35d5952532f99f32d9420dc017)
parent 7e3b57a2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -617,10 +617,12 @@ Error Display::presentOrValidate(uint32_t* outNumTypes, uint32_t* outNumRequests
// For use by Device

void Display::setConnected(bool connected) {
    if (!mIsConnected && connected && mType == DisplayType::Physical) {
    if (!mIsConnected && connected) {
        mComposer.setClientTargetSlotCount(mId);
        if (mType == DisplayType::Physical) {
            loadConfigs();
        }
    }
    mIsConnected = connected;
}