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

Commit 58ced4f5 authored by ramindani's avatar ramindani
Browse files

[VTS] Removes wait on buffer fence

When we have a fence created with GraphicBuffer
We don't need to wait on it in VTS tests,
the composer should be able to handle the
 fence in this case

BUG: 219589185

Test: atest VtsHalGraphicsComposer3_TargetTest
Change-Id: I688d695bb562dd1fe86cdceb642e746cbafe8b30
parent 07e6f849
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -565,11 +565,6 @@ TEST_P(GraphicsCompositionTest, ClientComposition) {
            int32_t clientFence;
            const auto unlockStatus = graphicBuffer->unlockAsync(&clientFence);
            ASSERT_EQ(::android::OK, unlockStatus);
            if (clientFence >= 0) {
                sync_wait(clientFence, -1);
                close(clientFence);
            }

            mWriter.setClientTarget(getPrimaryDisplayId(), /*slot*/ 0, buffer, clientFence,
                                    clientDataspace, std::vector<common::Rect>(1, damage));
            layer->setToClientComposition(mWriter);
@@ -676,11 +671,6 @@ TEST_P(GraphicsCompositionTest, DeviceAndClientComposition) {
        int32_t clientFence;
        const auto unlockStatus = graphicBuffer->unlockAsync(&clientFence);
        ASSERT_EQ(::android::OK, unlockStatus);
        if (clientFence >= 0) {
            sync_wait(clientFence, -1);
            close(clientFence);
        }

        mWriter.setClientTarget(getPrimaryDisplayId(), /*slot*/ 0, buffer, clientFence,
                                clientDataspace, std::vector<common::Rect>(1, clientFrame));
        clientLayer->setToClientComposition(mWriter);
+0 −4
Original line number Diff line number Diff line
@@ -328,10 +328,6 @@ void TestBufferLayer::fillBuffer(std::vector<Color>& expectedColors) {

    const auto unlockStatus = mGraphicBuffer->unlockAsync(&mFillFence);
    ASSERT_EQ(::android::OK, unlockStatus);
    if (mFillFence >= 0) {
        sync_wait(mFillFence, -1);
        close(mFillFence);
    }
}

void TestBufferLayer::setBuffer(std::vector<Color> colors) {