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

Conversation

@jonahwilliams
Copy link
Contributor

This fixes the correctness issues observed in flutter/flutter#126701 . The missing stencil descriptor meant that the clips were always ignored.

Have not yet investigated the reported debug performance issues.

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

desc.SetStencilAttachmentDescriptors({});

StencilAttachmentDescriptor stencil0;
stencil0.stencil_compare = CompareFunction::kEqual;
Copy link
Member

Choose a reason for hiding this comment

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

The stencil depth (you can get this from the Entity) should also be set here, otherwise any clips will cause the output to get discarded.

Copy link
Member

Choose a reason for hiding this comment

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

Specifically, the "stencil_reference" field.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We also set this on the command below. its a bit hard to track though, I think ultimately all of this information needs to end up on the descriptor right?

Copy link
Member

Choose a reason for hiding this comment

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

Ah whoops, I missed that we're already setting it.

The reason we have the stencil ref on the command and not the pipeline descriptor is that it's a pipeline input, not a property that we need to hash and build new pipelines for.

Copy link
Member

@bdero bdero left a comment

Choose a reason for hiding this comment

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

LGTM

desc.SetStencilAttachmentDescriptors({});

StencilAttachmentDescriptor stencil0;
stencil0.stencil_compare = CompareFunction::kEqual;
Copy link
Member

Choose a reason for hiding this comment

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

Ah whoops, I missed that we're already setting it.

The reason we have the stencil ref on the command and not the pipeline descriptor is that it's a pipeline input, not a property that we need to hash and build new pipelines for.

@jonahwilliams
Copy link
Contributor Author

test added, waiting for gold results

@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

Changes reported for pull request #42054 at sha e351eb7

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label May 15, 2023
@auto-submit auto-submit bot merged commit 6658986 into flutter:main May 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 16, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 16, 2023
…126894)

flutter/engine@027ca79...c4d4b40

2023-05-15 [email protected] Fix upload xcresult script in run_tests.py (flutter/engine#42056)
2023-05-15 [email protected] [Impeller] set stencil attachment descriptor for runtime effect. (flutter/engine#42054)
2023-05-15 [email protected] Roll Skia from 4becb53e3c21 to 24bebce2d9a1 (20 revisions) (flutter/engine#42058)
2023-05-15 [email protected] Roll Fuchsia Linux SDK from EweLgJoiYUDok2vyU... to 38Oyy28qgYCdt7fEV... (flutter/engine#42057)
2023-05-15 [email protected] [Impeller] Remove debug print statement from EntityPass (flutter/engine#42055)
2023-05-15 [email protected] Compile skwasm at -Oz. (flutter/engine#42002)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from EweLgJoiYUDo to 38Oyy28qgYCd

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
@jonahwilliams jonahwilliams deleted the shader_save_layer branch May 16, 2023 05:11
@chinmaygarde
Copy link
Member

Can we cherry pick this please? The issue template for requesting the cherry pick is here.

CaseyHillers pushed a commit to CaseyHillers/flutter that referenced this pull request May 24, 2023
…lutter#126894)

flutter/engine@027ca79...c4d4b40

2023-05-15 [email protected] Fix upload xcresult script in run_tests.py (flutter/engine#42056)
2023-05-15 [email protected] [Impeller] set stencil attachment descriptor for runtime effect. (flutter/engine#42054)
2023-05-15 [email protected] Roll Skia from 4becb53e3c21 to 24bebce2d9a1 (20 revisions) (flutter/engine#42058)
2023-05-15 [email protected] Roll Fuchsia Linux SDK from EweLgJoiYUDok2vyU... to 38Oyy28qgYCdt7fEV... (flutter/engine#42057)
2023-05-15 [email protected] [Impeller] Remove debug print statement from EntityPass (flutter/engine#42055)
2023-05-15 [email protected] Compile skwasm at -Oz. (flutter/engine#42002)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from EweLgJoiYUDo to 38Oyy28qgYCd

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

Labels

autosubmit Merge PR when tree becomes green via auto submit App needs tests will affect goldens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants