ozone/drm: Restore plane->in_use when necessary
HardwareDisplayPlaneManager::BeginFrame currently iterates all the planes active on a specific crtc and set in_use to false, so that they can be used when building up the next frame to commit. Not all the path of HDPM::AssignOverlayPlanes and HDPM::Commit end up committing the planes though, this means a pageflip test, or a failing pageflip, might end up leaving |in_use| set to false, while the crtc is actually still using those planes. Bug: 1127487 Test: HardwareDisplayPlaneManagerAtomicTest.{AssignPlanesRestoresInUse,PageflipTestRestoresInUse} Change-Id: Iee7f6b87af7e38f9ac7c6dea0687cc37dc4c6493 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446831 Commit-Queue: Daniele Castagna <dcastagna@chromium.org> Reviewed-by:Mark Yacoub <markyacoub@google.com> Cr-Commit-Position: refs/heads/master@{#813807}
Showing
Please register or sign in to comment