-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Do not build scene unless 3d define is true #45028
Conversation
|
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. |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
auto label is removed for flutter/engine/45028, due to - The status or check suite Linux Framework Smoke Tests has failed. Please fix the issues identified (or deflake) before re-applying this label. |
| ASSERT_TRUE(OpenPlaygroundHere(canvas.EndRecordingAsPicture())); | ||
| } | ||
|
|
||
| #if IMPELLER_ENABLE_3D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should activate this flag in a CI build as part of this patch, otherwise Scene will just bitrot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the mac unpt build (which AFAIU runs the impeller unittests) to add --impeller-enable-3d.
ci/builders/mac_unopt.json
Outdated
| "--no-lto", | ||
| "--prebuilt-dart-sdk" | ||
| "--prebuilt-dart-sdk", | ||
| "--impeller-enable-3d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this unopt build get collected into artifacts that are shipped to Flutter users in any form? The --impeller-enable-3d flag also switches on the "experimental" version of dart:ui, which allows for appending scene nodes that we should continue not exposing to Flutter users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't ship unopt artifacts
ci/builders/mac_unopt.json
Outdated
| "--no-lto", | ||
| "--prebuilt-dart-sdk" | ||
| "--prebuilt-dart-sdk", | ||
| "--impeller-enable-3d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command to run tests for host_debug_unopt is defined down on line 167. Are there any additional tests to add there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as long as impeller_unittests runs it's fine - which it should as part of run_tests.py on this platform
|
I'ms eeing a vulkan validation failure on mac with this patch and don't know why - I'm trying to update to ToT and see if that fixes things. |
|
Coincidentally this is the same fraembuffer issue as we're seeing on the A02... |
|
Ok, I backed out an unintentional file. |
|
Here's a CI build that ran the Scene unit test: |
|
auto label is removed for flutter/engine/45028, due to - The status or check suite Linux Web Framework tests has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
The web framework test failure seemed like a flake. Retrying. |
|
auto label is removed for flutter/engine/45028, due to - The status or check suite Linux Web Framework tests has failed. Please fix the issues identified (or deflake) before re-applying this label. |
…133296) flutter/engine@965501a...b8ec4da 2023-08-24 [email protected] Roll Skia from 99a76ea8e1b2 to 1428f16fc0de (1 revision) (flutter/engine#45086) 2023-08-24 [email protected] Roll Skia from 25fafff5b32c to 99a76ea8e1b2 (2 revisions) (flutter/engine#45083) 2023-08-24 [email protected] Revert "Turn on the `skia_enable_optimize_size` flag to save a bit of binary size" (flutter/engine#45082) 2023-08-24 [email protected] Roll Skia from d7d56885a49b to 25fafff5b32c (1 revision) (flutter/engine#45081) 2023-08-24 [email protected] [Impeller] Do not build scene unless 3d define is true (flutter/engine#45028) 2023-08-24 [email protected] Roll Skia from 177e8477faf9 to d7d56885a49b (1 revision) (flutter/engine#45078) 2023-08-24 [email protected] Reland: [Rasterizer] Make resubmit information temporary (flutter/engine#45037) 2023-08-24 [email protected] Add case checking to android sdk cipd upload script (flutter/engine#45063) 2023-08-24 [email protected] Roll Skia from 007386294889 to 177e8477faf9 (1 revision) (flutter/engine#45076) 2023-08-24 [email protected] Turn on the `skia_enable_optimize_size` flag to save a bit of binary size (flutter/engine#45029) 2023-08-24 [email protected] Roll Skia from b17ee34f3378 to 007386294889 (1 revision) (flutter/engine#45075) 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 [email protected],[email protected],[email protected] 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
Fixes flutter/flutter#133193