Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Impeller] Failed to compile porterduff shader on MI 9 with Adreno (TM) 640 #160162

@kduvnjak

Description

@kduvnjak

Steps to reproduce

Run any Flutter app on Xiaomi MI 9 with Adreno (TM) 640, Android 10 and you will see performance issues and stuttering.

I believe that this is the same issue like here:

flutter/engine#57069
#155185
#159834

Expected results

Any app to work correctly with Flutter 3.27.0 on this device

Actual results

Application has performance issues and stuttering

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
I/flutter (20615): [IMPORTANT:flutter/shell/platform/android/android_context_vk_impeller.cc(57)] Using the Impeller rendering backend (Vulkan with Validation Layers).
E/flutter (20615): [ERROR:flutter/impeller/renderer/backend/vulkan/pipeline_cache_vk.cc(88)] Break on 'ImpellerValidationBreak' to inspect point of failure: Could not create graphics pipeline: Incomplete
E/flutter (20615): [ERROR:flutter/impeller/renderer/backend/vulkan/pipeline_vk.cc(433)] Break on 'ImpellerValidationBreak' to inspect point of failure: Could not create graphics pipeline: PorterDuffBlend Pipeline

I/AdrenoVK(20615): QUALCOMM build          : e0436c5, Ib165d46056
I/AdrenoVK(20615): Build Date              : 09/10/19
I/AdrenoVK(20615): Shader Compiler Version : EV031.27.05.01
I/AdrenoVK(20615): Local Branch            : 
I/AdrenoVK(20615): Remote Branch           : quic/gfx-adreno.lnx.1.0.r74-rel
I/AdrenoVK(20615): Remote Branch           : NONE
I/AdrenoVK(20615): Reconstruct Branch      : NOTHING
I/AdrenoVK(20615): Build Config            : S P 8.0.11 AArch64
I/FLTFireBGExecutor(20615): Creating background FlutterEngine instance, with args: [--start-paused, --enable-vulkan-validation, --enable-dart-profiling]
I/AdrenoVK(20615): QUALCOMM build          : e0436c5, Ib165d46056
I/AdrenoVK(20615): Build Date              : 09/10/19
I/AdrenoVK(20615): Shader Compiler Version : EV031.27.05.01
I/AdrenoVK(20615): Local Branch            : 
I/AdrenoVK(20615): Remote Branch           : quic/gfx-adreno.lnx.1.0.r74-rel
I/AdrenoVK(20615): Remote Branch           : NONE
I/AdrenoVK(20615): Reconstruct Branch      : NOTHING
I/AdrenoVK(20615): Build Config            : S P 8.0.11 AArch64
I/flutter (20615): [IMPORTANT:flutter/shell/platform/android/android_context_vk_impeller.cc(60)] Using the Impeller rendering backend (Vulkan).
I/AdrenoVK(20615): Failed to link shaders.
E/flutter (20615): [ERROR:flutter/impeller/renderer/backend/vulkan/pipeline_cache_vk.cc(88)] Break on 'ImpellerValidationBreak' to inspect point of failure: Could not create graphics pipeline: Incomplete
E/flutter (20615): [ERROR:flutter/impeller/renderer/backend/vulkan/pipeline_vk.cc(433)] Break on 'ImpellerValidationBreak' to inspect point of failure: Could not create graphics pipeline: PorterDuffBlend Pipeline

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.27.0, on macOS 14.6 23G80 darwin-arm64, locale en-GB)
    ! Warning: `flutter` on your path resolves to /Users/kduvnjak/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/kduvnjak/fvm/versions/3.27.0. Consider adding
      /Users/kduvnjak/fvm/versions/3.27.0/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.3.4/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/kduvnjak/fvm/versions/3.27.0. Consider
      adding /Users/kduvnjak/fvm/versions/3.27.0/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.3)
[✓] Connected device (5 available)
[✓] Network resources```

</details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions