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

Manually roll ANGLE, vulkan-deps, SwiftShader #38650

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Jan 4, 2023

This updates our dependencies so that the engine can be built using Visual Studio 17.4 and newer.

Depends on: flutter/buildroot#669
Part of: flutter/flutter#117932

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.

@loic-sharma loic-sharma changed the title Roll ANGLE from 094b49d to 32175d Manually roll ANGLE, vulkan-deps, SwiftShader Jan 5, 2023
@flutter-dashboard flutter-dashboard bot added the embedder Related to the embedder API label Jan 5, 2023
@@ -118,6 +118,7 @@ final List<RegExp> copyrightStatementPatterns = <RegExp>[
RegExp(r'^(?:[^ ]+ )?Modifications:$', caseSensitive: false),
RegExp(r'^ *Modifications for', caseSensitive: false),
RegExp(r'^ *Modifications of', caseSensitive: false),
RegExp(r'^Modifications Copyright \(C\) .+', caseSensitive: false),
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -868,7 +869,7 @@ final List<RegExp> csTemplateLicenses = <RegExp>[
kIndent +

// Some files in ANGLE prefix the license with a description of the license.
r'(?:BSD 2-Clause License \(http://www.opensource.org/licenses/bsd-license.php\))?' +
r'(?:BSD 2-Clause License \(https?://www.opensource.org/licenses/bsd-license.php\))?' +
Copy link
Member Author

Choose a reason for hiding this comment

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

declare_undefined_values();
if (emit_undefined_values()) {
statement("");
}
Copy link
Member Author

@loic-sharma loic-sharma Jan 23, 2023

Choose a reason for hiding this comment

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

For SPIRV's GLSL compiler, undefined values are emitted by CompilerGLSL::emit_resources: previously it called CompilerGLSL::declare_undefined_values, now, it emits undefined values without any helpers.

Since CompilerGLSL::declare_undefined_values was removed (see KhronosGroup/SPIRV-Cross@5547b25), our SkSL compiler has two options to emit undefined values:

  1. Copy the old logic from CompilerGLSL::declare_undefined_values into SkSL, or...
  2. Refactor CompilerSkSL to call CompilerGLSL::emit_resources

I went with the first option as that's the easiest.

DEPS Outdated Show resolved Hide resolved
# ANGLE and SwiftShader share build flags to enable X11 and Wayland,
# but we only need these enabled for SwiftShader.
gn_args['angle_use_x11'] = False
gn_args['angle_use_wayland'] = False
Copy link
Member Author

@loic-sharma loic-sharma Jan 23, 2023

Choose a reason for hiding this comment

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

Our tests depend on the Xcb and Wayland Vulkan extensions that are provided by SwiftShader. The latest version of SwiftShader now requires you to opt-in to these extensions through build flags, which we did in flutter/buildroot#669.

Unfortunately, those build flags also enable stuff in ANGLE that we don't need. See: https://github.com/google/angle/blob/057997e4f646c834ea9ef38ead6a7fd14f392115/gni/angle.gni#L61-L68

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

🎉🎉🎉
LGTM stamp from a Japanese personal seal

@iskakaushik
Copy link
Contributor

looks like the fixtures have changed, the gradients look a little off, is that expected?

@chinmaygarde
Copy link
Member

the gradients look a little off

Could you actually spot the difference? If we can't eyeball it, then it's fine IMO.

@iskakaushik
Copy link
Contributor

Could you actually spot the difference? If we can't eyeball it, then it's fine IMO.

Looking at them again, I thought the difference was bigger than it actually is.

LGTM!

@loic-sharma
Copy link
Member Author

FYI it's hard to compare the fixtures side-by-side, I recommend using GitHub's Swipe mode and moving the slider across. I personally could not eyeball any differences either:

image

loic-sharma added a commit to flutter/buildroot that referenced this pull request Jan 24, 2023
Our tests depend on the Xcb and Wayland Vulkan extensions that are provided by SwiftShader. The latest version of SwiftShader now requires you to opt-in to these extensions through build flags.

See: flutter/engine#38650
Part of: flutter/flutter#117932
@loic-sharma loic-sharma added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 25, 2023
@auto-submit auto-submit bot merged commit f1464b4 into flutter:main Jan 25, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 25, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jan 25, 2023
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this pull request Jan 25, 2023
…tter/engine#38650) (#119097)

Commit: 6414c36041eb89d867eec0e8f251d504773007fd
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Jan 25, 2023
* 373523184 Cleanup old Dart SDK layout compatibility (flutter/flutter#118819)

* 4d250302a Add leak_tracker as dev_dependency.  (flutter/flutter#118952)

* e3c51a2f2 Add Windows unit tests to plugin template (flutter/flutter#118638)

* d20dd9e4b Roll Flutter Engine from 7d3233d26d09 to 71ee5f19bc16 (15 revisions) (flutter/flutter#119081)

* 5dabe102a Fix path name to discover debug apk on add2app builds (flutter/flutter#117999)

* 50ed8a34b Enable `unnecessary_null_comparison` check (flutter/flutter#118849)

* 455e6aca5 Test integration test apps' runner files against current template app (flutter/flutter#118646)

* a788e1b31 Roll Flutter Engine from 71ee5f19bc16 to 59ea78bfabda (2 revisions) (flutter/flutter#119087)

* c35370cf0 Roll Flutter Engine from 59ea78bfabda to 2499a5d9fca7 (2 revisions) (flutter/flutter#119089)

* 2f0dd5673 Refactor highlight handling in FocusManager (flutter/flutter#119075)

* 2759f3f0b Roll Flutter Engine from 2499a5d9fca7 to d98926c32ee7 (2 revisions) (flutter/flutter#119090)

* 760fb2115 Roll Flutter Engine from d98926c32ee7 to bec40654a5d7 (2 revisions) (flutter/flutter#119093)

* bbca694ef Roll Flutter Engine from bec40654a5d7 to 5405f2c26e85 (2 revisions) (flutter/flutter#119095)

* 6414c3604 f1464b49c Manually roll ANGLE, vulkan-deps, SwiftShader (flutter/engine#38650) (flutter/flutter#119097)

* 426cdd90c 55bb8deaf [Impeller] Linear sample atlas glyphs when the CTM isn't translation/scale only (flutter/engine#39112) (flutter/flutter#119098)

* 83c3a61e3 Only emit image painting events in debug & profile modes. (flutter/flutter#118872)

* b113df2dc bffb98352 Roll Skia from b72fececbdcc to 8ffd5c20d634 (3 revisions) (flutter/engine#39114) (flutter/flutter#119099)

* 351466aea Add Decoding Flutter videos to API docs (flutter/flutter#116454)

* 318f8758b Pass through magnifierConfiguration (flutter/flutter#118270)

* eced23eab d39ab638b Roll Fuchsia Mac SDK from MUvFS0baOnigVUIND... to _H53AyDxR9Pm2TbwN... (flutter/engine#39122) (flutter/flutter#119126)

* 29ab437e2 Add Material 3 `CheckboxListTile` example and update existing examples (flutter/flutter#118792)

* a815ee634 8efc7183b Roll Skia from 8ffd5c20d634 to da5034f9d117 (4 revisions) (flutter/engine#39123) (flutter/flutter#119129)
ricardoamador pushed a commit to ricardoamador/engine that referenced this pull request Jan 25, 2023
auto-submit bot pushed a commit to flutter/plugins that referenced this pull request Jan 25, 2023
* 3735231 Cleanup old Dart SDK layout compatibility (flutter/flutter#118819)

* 4d25030 Add leak_tracker as dev_dependency.  (flutter/flutter#118952)

* e3c51a2 Add Windows unit tests to plugin template (flutter/flutter#118638)

* d20dd9e Roll Flutter Engine from 7d3233d26d09 to 71ee5f19bc16 (15 revisions) (flutter/flutter#119081)

* 5dabe10 Fix path name to discover debug apk on add2app builds (flutter/flutter#117999)

* 50ed8a3 Enable `unnecessary_null_comparison` check (flutter/flutter#118849)

* 455e6ac Test integration test apps' runner files against current template app (flutter/flutter#118646)

* a788e1b Roll Flutter Engine from 71ee5f19bc16 to 59ea78bfabda (2 revisions) (flutter/flutter#119087)

* c35370c Roll Flutter Engine from 59ea78bfabda to 2499a5d9fca7 (2 revisions) (flutter/flutter#119089)

* 2f0dd56 Refactor highlight handling in FocusManager (flutter/flutter#119075)

* 2759f3f Roll Flutter Engine from 2499a5d9fca7 to d98926c32ee7 (2 revisions) (flutter/flutter#119090)

* 760fb21 Roll Flutter Engine from d98926c32ee7 to bec40654a5d7 (2 revisions) (flutter/flutter#119093)

* bbca694 Roll Flutter Engine from bec40654a5d7 to 5405f2c26e85 (2 revisions) (flutter/flutter#119095)

* 6414c36 f1464b49c Manually roll ANGLE, vulkan-deps, SwiftShader (flutter/engine#38650) (flutter/flutter#119097)

* 426cdd9 55bb8deaf [Impeller] Linear sample atlas glyphs when the CTM isn't translation/scale only (flutter/engine#39112) (flutter/flutter#119098)

* 83c3a61 Only emit image painting events in debug & profile modes. (flutter/flutter#118872)

* b113df2 bffb98352 Roll Skia from b72fececbdcc to 8ffd5c20d634 (3 revisions) (flutter/engine#39114) (flutter/flutter#119099)

* 351466a Add Decoding Flutter videos to API docs (flutter/flutter#116454)

* 318f875 Pass through magnifierConfiguration (flutter/flutter#118270)

* eced23e d39ab638b Roll Fuchsia Mac SDK from MUvFS0baOnigVUIND... to _H53AyDxR9Pm2TbwN... (flutter/engine#39122) (flutter/flutter#119126)

* 29ab437 Add Material 3 `CheckboxListTile` example and update existing examples (flutter/flutter#118792)

* a815ee6 8efc7183b Roll Skia from 8ffd5c20d634 to da5034f9d117 (4 revisions) (flutter/engine#39123) (flutter/flutter#119129)
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
* 3735231 Cleanup old Dart SDK layout compatibility (flutter/flutter#118819)

* 4d25030 Add leak_tracker as dev_dependency.  (flutter/flutter#118952)

* e3c51a2 Add Windows unit tests to plugin template (flutter/flutter#118638)

* d20dd9e Roll Flutter Engine from 7d3233d26d09 to 71ee5f19bc16 (15 revisions) (flutter/flutter#119081)

* 5dabe10 Fix path name to discover debug apk on add2app builds (flutter/flutter#117999)

* 50ed8a3 Enable `unnecessary_null_comparison` check (flutter/flutter#118849)

* 455e6ac Test integration test apps' runner files against current template app (flutter/flutter#118646)

* a788e1b Roll Flutter Engine from 71ee5f19bc16 to 59ea78bfabda (2 revisions) (flutter/flutter#119087)

* c35370c Roll Flutter Engine from 59ea78bfabda to 2499a5d9fca7 (2 revisions) (flutter/flutter#119089)

* 2f0dd56 Refactor highlight handling in FocusManager (flutter/flutter#119075)

* 2759f3f Roll Flutter Engine from 2499a5d9fca7 to d98926c32ee7 (2 revisions) (flutter/flutter#119090)

* 760fb21 Roll Flutter Engine from d98926c32ee7 to bec40654a5d7 (2 revisions) (flutter/flutter#119093)

* bbca694 Roll Flutter Engine from bec40654a5d7 to 5405f2c26e85 (2 revisions) (flutter/flutter#119095)

* 6414c36 f1464b49c Manually roll ANGLE, vulkan-deps, SwiftShader (flutter/engine#38650) (flutter/flutter#119097)

* 426cdd9 55bb8deaf [Impeller] Linear sample atlas glyphs when the CTM isn't translation/scale only (flutter/engine#39112) (flutter/flutter#119098)

* 83c3a61 Only emit image painting events in debug & profile modes. (flutter/flutter#118872)

* b113df2 bffb98352 Roll Skia from b72fececbdcc to 8ffd5c20d634 (3 revisions) (flutter/engine#39114) (flutter/flutter#119099)

* 351466a Add Decoding Flutter videos to API docs (flutter/flutter#116454)

* 318f875 Pass through magnifierConfiguration (flutter/flutter#118270)

* eced23e d39ab638b Roll Fuchsia Mac SDK from MUvFS0baOnigVUIND... to _H53AyDxR9Pm2TbwN... (flutter/engine#39122) (flutter/flutter#119126)

* 29ab437 Add Material 3 `CheckboxListTile` example and update existing examples (flutter/flutter#118792)

* a815ee6 8efc7183b Roll Skia from 8ffd5c20d634 to da5034f9d117 (4 revisions) (flutter/engine#39123) (flutter/flutter#119129)
Maatteogekko pushed a commit to Maatteogekko/packages that referenced this pull request Feb 4, 2023
…r#3089)

* 373523184 Cleanup old Dart SDK layout compatibility (flutter/flutter#118819)

* 4d250302a Add leak_tracker as dev_dependency.  (flutter/flutter#118952)

* e3c51a2f2 Add Windows unit tests to plugin template (flutter/flutter#118638)

* d20dd9e4b Roll Flutter Engine from 7d3233d26d09 to 71ee5f19bc16 (15 revisions) (flutter/flutter#119081)

* 5dabe102a Fix path name to discover debug apk on add2app builds (flutter/flutter#117999)

* 50ed8a34b Enable `unnecessary_null_comparison` check (flutter/flutter#118849)

* 455e6aca5 Test integration test apps' runner files against current template app (flutter/flutter#118646)

* a788e1b31 Roll Flutter Engine from 71ee5f19bc16 to 59ea78bfabda (2 revisions) (flutter/flutter#119087)

* c35370cf0 Roll Flutter Engine from 59ea78bfabda to 2499a5d9fca7 (2 revisions) (flutter/flutter#119089)

* 2f0dd5673 Refactor highlight handling in FocusManager (flutter/flutter#119075)

* 2759f3f0b Roll Flutter Engine from 2499a5d9fca7 to d98926c32ee7 (2 revisions) (flutter/flutter#119090)

* 760fb2115 Roll Flutter Engine from d98926c32ee7 to bec40654a5d7 (2 revisions) (flutter/flutter#119093)

* bbca694ef Roll Flutter Engine from bec40654a5d7 to 5405f2c26e85 (2 revisions) (flutter/flutter#119095)

* 6414c3604 f1464b49c Manually roll ANGLE, vulkan-deps, SwiftShader (flutter/engine#38650) (flutter/flutter#119097)

* 426cdd90c 55bb8deaf [Impeller] Linear sample atlas glyphs when the CTM isn't translation/scale only (flutter/engine#39112) (flutter/flutter#119098)

* 83c3a61e3 Only emit image painting events in debug & profile modes. (flutter/flutter#118872)

* b113df2dc bffb98352 Roll Skia from b72fececbdcc to 8ffd5c20d634 (3 revisions) (flutter/engine#39114) (flutter/flutter#119099)

* 351466aea Add Decoding Flutter videos to API docs (flutter/flutter#116454)

* 318f8758b Pass through magnifierConfiguration (flutter/flutter#118270)

* eced23eab d39ab638b Roll Fuchsia Mac SDK from MUvFS0baOnigVUIND... to _H53AyDxR9Pm2TbwN... (flutter/engine#39122) (flutter/flutter#119126)

* 29ab437e2 Add Material 3 `CheckboxListTile` example and update existing examples (flutter/flutter#118792)

* a815ee634 8efc7183b Roll Skia from 8ffd5c20d634 to da5034f9d117 (4 revisions) (flutter/engine#39123) (flutter/flutter#119129)
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 embedder Related to the embedder API
Projects
None yet
5 participants