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

Skip to content

[CP][Impeller] Move AHB check into Flutter main, don't disable ImageReader on 29. #164496

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 11, 2025

Conversation

jonahwilliams
Copy link
Member

Rather than conditionally disabling AHBs, just disable Vulkan on devices where AHB imports don't work. FIx from last time is in the last commit, I reversed the string check accidentally and disabled vulkan everywhere 🥺

#163473
#160854

…ageReader on 29. (flutter#164201)

Rather than conditionally disabling AHBs, just disable Vulkan on devices
where AHB imports don't work. FIx from last time is in the last commit,
I reversed the string check accidentally and disabled vulkan everywhere
🥺

flutter#163473
flutter#160854
@jonahwilliams jonahwilliams added cp: review Cherry-picks in the review queue cp: stable cherry pick this pull request to stable release candidate branch labels Mar 3, 2025
@jonahwilliams jonahwilliams requested a review from jtmcdole March 3, 2025 18:15
@github-actions github-actions bot added platform-android Android applications specifically engine flutter/engine repository. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Mar 3, 2025
@camsim99 camsim99 added the cp: approved Approved cherry-pick request label Mar 6, 2025
@reidbaker reidbaker self-requested a review March 10, 2025 19:25
Copy link
Contributor

@reidbaker reidbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the test files I only see test removed. Can you point me to something that test this code. Maybe something that detects if the check that accidentally got inverted gets inverted again?

Changelog looks good.

@reidbaker
Copy link
Contributor

I will also take @jtmcdole override that we need a test.

@jtmcdole
Copy link
Member

I only see one reference to 'mediatek' in the tree after this change: https://github.com/search?q=repo%3Aflutter%2Fflutter%20mediatek%20language%3AC%2B%2B%20&type=code

_system_property* is provided by android, so I don't think this can be tested. @jonahwilliams to confirm.

@jonahwilliams
Copy link
Member Author

We can test it by running on a mediatek device ... which we have, its the mokey device in the lab. And if we ran our benchmarks on release branches we'd see that it is running GLES (for now).

@reidbaker
Copy link
Contributor

We can test it by running on a mediatek device ... which we have, its the mokey device in the lab. And if we ran our benchmarks on release branches we'd see that it is running GLES (for now).

That works for me!

@reidbaker reidbaker added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 11, 2025
@auto-submit auto-submit bot merged commit 9ae7906 into flutter:flutter-3.29-candidate.0 Mar 11, 2025
156 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 15, 2025
@holzgeist
Copy link
Contributor

holzgeist commented Mar 25, 2025

Hi @jonahwilliams

I bisected an issue I have down to this commit. The symptoms are the same as described in flutter-webrtc/flutter-webrtc#1756. But the original issue happened during the upgrade from 3.24 to 3.27 so it might not be directly related

I'm currently doing more testing around vulkan/opengles to figure out which part of the changes triggered the issue.
I'm on a Samsung Galaxy A14 with Android 14

Does this behavior ring a bell? Or is this commit not supposed to cause something like this?

@holzgeist
Copy link
Contributor

ok, it takes the MediaTek branch on my device and uses the OpenGLES backend of Impeller since this commit. Forcing the backend to be vulkan via AndroidManifest.xml fixes rendering

@holzgeist
Copy link
Contributor

master works (likely since d64db52)
But this probably means that rendering in OpenGLES is broken and the issue linked above has nothing to do with this commit

@holzgeist
Copy link
Contributor

I filed a separate issue about this: #165976

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 3, 2025
@reidbaker reidbaker mentioned this pull request Apr 4, 2025
9 tasks
Fintasys pushed a commit to Fintasys/flutter that referenced this pull request May 14, 2025
…eader on 29. (flutter#164496)

Rather than conditionally disabling AHBs, just disable Vulkan on devices where AHB imports don't work. FIx from last time is in the last commit, I reversed the string check accidentally and disabled vulkan everywhere 🥺

flutter#163473
flutter#160854
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App cp: approved Approved cherry-pick request cp: review Cherry-picks in the review queue cp: stable cherry pick this pull request to stable release candidate branch e: impeller Impeller rendering backend issues and features requests engine flutter/engine repository. See also e: labels. platform-android Android applications specifically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants