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] Gpu model information to Skia gold #41216

Merged
merged 5 commits into from
Apr 18, 2023

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Apr 14, 2023

Does two things:

  • Exposes a string about the GPU model on impeller::Context
  • passes that string on to Skia gold when we add a test image.

This should help reduce noise/flakiness in golden images.

Copy link
Member

@gaaclarke gaaclarke left a comment

Choose a reason for hiding this comment

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

Code lgtm. I don't know how this will manifest in skia gold, but sounds like it should work.

@@ -234,6 +236,7 @@ class SkiaGoldClient {
'--work-dir', _tempPath,
'--test-name', cleanTestName(testName),
'--png-file', goldenFile.path,
'--add-test-key', 'gpu_string:$gpuString',
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 enough to make skia gold segregate the golden results?

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the same as adding to the list of keys provided as initialization for the test? Those are collected in _getKeys

Copy link
Contributor

Choose a reason for hiding this comment

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

Good point, @Piinks. This should be added to dimensions, which later gets used in _getKeys().

Copy link
Member

Choose a reason for hiding this comment

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

Is this the same as adding to the list of keys provided as initialization for the test? Those are collected in _getKeys

Done

testing/skia_gold_client/lib/skia_gold_client.dart Outdated Show resolved Hide resolved
@@ -234,6 +236,7 @@ class SkiaGoldClient {
'--work-dir', _tempPath,
'--test-name', cleanTestName(testName),
'--png-file', goldenFile.path,
'--add-test-key', 'gpu_string:$gpuString',
Copy link
Contributor

Choose a reason for hiding this comment

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

Good point, @Piinks. This should be added to dimensions, which later gets used in _getKeys().

@gaaclarke
Copy link
Member

In local testing the gpu_string is "Apple M1 Max", so that sounds good.

I'm going to rebase to clear up the validation problem.

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

The dimensions change looks good to me!

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 18, 2023
@auto-submit auto-submit bot merged commit 5fcc7b7 into flutter:main Apr 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 18, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 18, 2023
…125069)

flutter/engine@6d263ea...5fcc7b7

2023-04-18 dnfield@google.com [Impeller] Gpu model information to Skia gold (flutter/engine#41216)
2023-04-18 30870216+gaaclarke@users.noreply.github.com [Impeller] faster glyph atlas generation by removing data copies (flutter/engine#41290)
2023-04-18 godofredoc@google.com Migrate android AOT to engine_v2. (flutter/engine#41229)
2023-04-18 skia-flutter-autoroll@skia.org Roll Skia from 5bd4bdc0d8e2 to f80ee1088861 (8 revisions) (flutter/engine#41302)

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 chinmaygarde@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
@dnfield dnfield deleted the gpu_model branch April 22, 2023 06:14
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 e: impeller
Projects
No open projects
Archived in project
4 participants