Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] moved validation layers on by default logic to gni scripts#45682

Merged
gaaclarke merged 1 commit into
flutter-team-archive:mainfrom
gaaclarke:moved-default-validation-layers-check
Sep 12, 2023
Merged

[Impeller] moved validation layers on by default logic to gni scripts#45682
gaaclarke merged 1 commit into
flutter-team-archive:mainfrom
gaaclarke:moved-default-validation-layers-check

Conversation

@gaaclarke

@gaaclarke gaaclarke commented Sep 11, 2023

Copy link
Copy Markdown
Contributor

fixes flutter/flutter#134460

Test will happen in the flutter repo as a result of flutter/flutter#134175

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 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.

@gaaclarke gaaclarke force-pushed the moved-default-validation-layers-check branch from 27ad47c to c6982ae Compare September 11, 2023 23:40
@gaaclarke

Copy link
Copy Markdown
Contributor Author

According to this build step the validation layers are now building, matching the behavior of the impeller vulkan backend: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8770207159619809201/+/u/build_android_debug_arm64_flutter_flutter_shell_platform_android:abi_jars/stdout

@gaaclarke gaaclarke marked this pull request as ready for review September 12, 2023 01:51

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

So the CI bots aren't passing enable_impeller_vulkan while building for Android? I guess this is working though 🤔

Comment thread tools/gn
gn_args['target_cpu'] == 'arm64'):
if enable_vulkan_validation:
gn_args['enable_vulkan_validation_layers'] = True
gn_args['impeller_enable_vulkan_validation_layers'] = True

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we have both enable_vulkan_validation_layers and impeller_enable_vulkan_validation_layers?

Or rather, what's the difference between impeller_enable_vulkan_validation_layers and (enable_impeller_vulkan && enable_vulkan_validation_layers)

(Not sure that enable_impeller_vulkan is the right spelling, but there's probably something we already have that could go there?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

enable_vulkan_validation_layers is for the fuchsia code, impeller_enable_vulkan_validation_layers is for impeller. There is also a angle_enable_vulkan_validation_layers. enable_vulkan_validation_layers predates impeller. I tried to share the variables. That's how it was previously, but we need a different default value. That's why we need a different variable here.

@gaaclarke

Copy link
Copy Markdown
Contributor Author

LGTM

So the CI bots aren't passing enable_impeller_vulkan while building for Android? I guess this is working though 🤔

Yep, that appears to be the case. I looked at the post build bots and didn't see one that turned on enable_impeller_vulkan, the bot is just relying on the default value from the gni file. I'm not 100% certain these are the source of the artifacts that are used by flutter/flutter, but it is likely that fixing this fixes it for whoever is making the artifacts if it isn't those bots.

@gaaclarke gaaclarke merged commit 20fdf9e into flutter-team-archive:main Sep 12, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 12, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 12, 2023
auto-submit Bot pushed a commit to flutter/flutter that referenced this pull request Sep 12, 2023
flutter-team-archive/engine@d4698c6...496ef6a

2023-09-12 skia-flutter-autoroll@skia.org Roll Skia from 7cafb622ee7f to a4f8f5177c8b (1 revision) (flutter-team-archive/engine#45719)
2023-09-12 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from vGleXqh2SRUNJM7JN... to MWWrSP9mSVlGIOaDo... (flutter-team-archive/engine#45718)
2023-09-12 skia-flutter-autoroll@skia.org Roll Skia from 438ec87ea2be to 7cafb622ee7f (1 revision) (flutter-team-archive/engine#45716)
2023-09-12 matanlurey@users.noreply.github.com [Impeller] Make `CreateMockVulkanContext()` thread-safe (flutter-team-archive/engine#45687)
2023-09-12 30870216+gaaclarke@users.noreply.github.com [Impeller] moved validation layers on by default logic to gni scripts (flutter-team-archive/engine#45682)
2023-09-12 skia-flutter-autoroll@skia.org Roll Skia from f3f0cab7efd0 to 438ec87ea2be (1 revision) (flutter-team-archive/engine#45714)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from vGleXqh2SRUN to MWWrSP9mSVlG

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 bdero@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

[Impeller] flutter debug runs falling back to opengl

3 participants