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

[Impeller] Make RenderTarget::CreateOffscreen utilities add a stencil by default #39636

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

bdero
Copy link
Member

@bdero bdero commented Feb 14, 2023

This fixes the problem noted in this comment: flutter/flutter#120586 (comment)

A breakage was introduced in #39537 that affects Picture::ToImage and Picture::RenderToTexture. Because the default behavior was changed to remove the stencil, these utilities end up trying to render an EntityPass to a RenderTarget with no configured stencil attachment.

This fix inverts the default behavior and explicitly removes the stencil from ContentContext::MakeSubpass instead.

@bdero bdero requested a review from jonahwilliams February 14, 2023 23:24
@bdero bdero self-assigned this Feb 14, 2023
@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.

Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@bdero bdero changed the title [Impeller] Make RenderTarget::CreateOffscreen utilities have a stencil by default [Impeller] Make RenderTarget::CreateOffscreen utilities add a stencil by default Feb 14, 2023
@bdero bdero merged commit f193de9 into flutter:main Feb 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 15, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 15, 2023
…120761)

* ab2dec516 Roll Skia from 8de7f68a3661 to 67a8177742e6 (4 revisions) (flutter/engine#39623)

* a7ec1e50f Remove libpng dependency in the APNG decoder (flutter/engine#39622)

* cb5393336 Add more info to malioc_diff.py output (flutter/engine#39625)

* 60c199501 Roll Dart SDK from ea59504416a8 to 22ad11262460 (2 revisions) (flutter/engine#39624)

* b1f76fbb0 [Impeller] Avoid stringstream usage in CreateUniformMemberKey (flutter/engine#39606)

* a85220d2f Fix a flake in EmbedderTest.CompositorRenderTargetsNotRecycledWhenAvoidsCacheSet (flutter/engine#39596)

* 3141b116d [impeller] Refactored backend specific feature checks to capabilities (flutter/engine#39598)

* bf667254f [impellerc] Generate GLSL output for the runtime-stage-gles target (flutter/engine#39602)

* 57e83aa16 [Impeller] Special case color filter in tiled texture. (flutter/engine#39445)

* e1325a9de Roll Skia from 67a8177742e6 to a3fe5233eb10 (9 revisions) (flutter/engine#39627)

* 9f2c4db50 Add app anatomy diagram (flutter/engine#39628)

* e8c14e436 Roll Fuchsia Linux SDK from mWwKhmxRlXNJATVmu... to A15Lg2MzGSkbj33mo... (flutter/engine#39631)

* 9bd50b706 [Impeller] read from framebuffer for advanced blends on iOS. (flutter/engine#39567)

* 66715c928 Fix build output path of the malioc core list (flutter/engine#39629)

* 727500b12 Roll Skia from a3fe5233eb10 to b7508e2f2577 (3 revisions) (flutter/engine#39634)

* f193de9cc [Impeller] Make RenderTarget::CreateOffscreen utilities have a stencil by default (flutter/engine#39636)

* 76b51e33a Roll Skia from b7508e2f2577 to 5974e36ea190 (4 revisions) (flutter/engine#39639)

* aba44ff0b Roll Dart SDK from 22ad11262460 to 1dc26efa3c4c (1 revision) (flutter/engine#39640)

* 657102f87 Roll Fuchsia Mac SDK from EFcCpAxOuQllDqP0F... to jsnm3dngrd9MveHrB... (flutter/engine#39641)

* 44e36c9c0 Roll Skia from 5974e36ea190 to 2a7644cf4bd7 (1 revision) (flutter/engine#39642)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants