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

Commit b77c94a9 authored by Matt Sarett's avatar Matt Sarett
Browse files

Disable buffer age swap behavior for SkiaGL on Adreno gpus

Test: Verified that this fixes rendering bugs.

BUG:31957043
Change-Id: I3e5bca73eae2d917906658f76d8c432dbb248d89
parent fd9d0ee9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -106,7 +106,10 @@ void EglManager::initialize() {

    // Now that extensions are loaded, pick a swap behavior
    if (Properties::enablePartialUpdates) {
        if (Properties::useBufferAge && EglExtensions.bufferAge) {
        // An Adreno driver bug is causing rendering problems for SkiaGL with
        // buffer age swap behavior (b/31957043).  To temporarily workaround,
        // we will use preserved swap behavior.
        if (Properties::useBufferAge && EglExtensions.bufferAge && !Properties::isSkiaEnabled()) {
            mSwapBehavior = SwapBehavior::BufferAge;
        } else {
            mSwapBehavior = SwapBehavior::Preserved;