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

Commit 6b9225ab authored by Marissa Wall's avatar Marissa Wall
Browse files

surfaceflinger: fix current transform hint

BufferQueueLayer was missing updateTransformHint on first ref.
This resulted in VulkanPreTransformTest
testVulkanPreTransformSetToMatchCurrentTransform failure.

Bug: 112439036
Test: run cts -m CtsGraphicsTestCases \
            -t android.graphics.cts.VulkanPreTransformTest

Change-Id: I58bac29d2c628e7ecd578fd611796211e95bd0dd
parent 2a8f3d2a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -433,6 +433,10 @@ void BufferQueueLayer::onFirstRef() {
    if (mFlinger->isLayerTripleBufferingDisabled()) {
        mProducer->setMaxDequeuedBufferCount(2);
    }

    if (const auto display = mFlinger->getDefaultDisplayDevice()) {
        updateTransformHint(display);
    }
}

status_t BufferQueueLayer::setDefaultBufferProperties(uint32_t w, uint32_t h, PixelFormat format) {