Skip to content
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

[Impeller] Reland: Added a switch to turn on vulkan #42669

Merged
merged 1 commit into from Jun 9, 2023

Conversation

gaaclarke
Copy link
Member

relands #42585

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Member

@jason-simmons jason-simmons left a comment

Choose a reason for hiding this comment

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

This is still adding the Impeller Vulkan backend to release binaries because impeller_enable_vulkan is on by default for Android.

(see https://github.com/flutter/engine/blob/main/impeller/tools/impeller.gni#L21)

@@ -139,6 +140,10 @@ source_set("flutter_shell_native_src") {

defines = []

if (impeller_enable_vulkan) {
defines += [ "IMPELLER_ENABLE_VULKAN" ]
Copy link
Member

Choose a reason for hiding this comment

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

This is not needed. IMPELLER_ENABLE_VULKAN will be defined in this module through the dependency on Impeller's public config.

@gaaclarke
Copy link
Member Author

This is still adding the Impeller Vulkan backend to release binaries because impeller_enable_vulkan is on by default for Android.

(see https://github.com/flutter/engine/blob/main/impeller/tools/impeller.gni#L21)

Ahh shoot. I didn't think to look there, I only looked at the builders and gn script. Having that flag on seems in error since we are saying we don't want it. I'm guessing it was just a hack to get CI compilation coverage.

@gaaclarke gaaclarke force-pushed the reland-vulkan-switch branch 4 times, most recently from e4e211a to 69acad9 Compare June 9, 2023 00:02
@gaaclarke
Copy link
Member Author

@jason-simmons @zanderso Now that flutter/flutter#128484 is resolved. This is just a straight reland of the original PR. I've removed the attempt to hook into the enable-impeller-vulkan flag.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 9, 2023
@gaaclarke gaaclarke merged commit 64d0cc3 into flutter:main Jun 9, 2023
31 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 9, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jun 9, 2023
…128617)

flutter/engine@488876e...3e90345

2023-06-09 skia-flutter-autoroll@skia.org Roll ANGLE from 3e4f4caebcb0 to 72df42832ee4 (2 revisions) (flutter/engine#42703)
2023-06-09 skia-flutter-autoroll@skia.org Manual roll Dart SDK from bbce07ad3944 to d5b39a8385f9 (2 revisions) (flutter/engine#42702)
2023-06-09 30870216+gaaclarke@users.noreply.github.com [Impeller] Reland: Added a switch to turn on vulkan (flutter/engine#42669)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jacksongardner@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
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 needs tests platform-android
Projects
No open projects
Archived in project
3 participants