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

Conversation

@matanlurey
Copy link
Contributor

@matanlurey matanlurey commented Oct 30, 2023

Closes flutter/flutter#137569.
Closes flutter/flutter#137095.

As of the latest commit, it works on both the Moto G4 and Pixel 5.

Comment on lines +27 to +28
return is_msaa ? TextureGLES::Type::kRenderBufferMultisampled
: TextureGLES::Type::kRenderBuffer;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should something like usage == render_target && desc.pixelformat == PixelFormat::S8

Copy link
Contributor

Choose a reason for hiding this comment

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

or maybe pixelformat != PixelFormat::whatever_the_gl_pixel_format_is

Copy link
Contributor

Choose a reason for hiding this comment

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

or maybe even better just pass in the expected attachment point and use that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortuantely the TextureGLES is created far before the concept of attachment points :-/

Copy link
Contributor

Choose a reason for hiding this comment

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

RIP. The formats for GLES are more or less constant, though if that changes this will be a fun landmine 😆

@matanlurey
Copy link
Contributor Author

Making sure to only use render buffers for stencils solves the artifact issue :)

@matanlurey matanlurey changed the title Initial guesswork implementation for MSAA render buffers. Initial implementation for MSAA render buffers. Oct 31, 2023
@matanlurey matanlurey changed the title Initial implementation for MSAA render buffers. [Impeller] OpenGLES MSAA Render Buffers (i.e. for stencils) Oct 31, 2023
@matanlurey matanlurey marked this pull request as ready for review October 31, 2023 17:08
Copy link
Contributor

@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

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 31, 2023
@auto-submit auto-submit bot merged commit 39be0fc into flutter:main Oct 31, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 31, 2023
…137635)

flutter/engine@4da3e5b...39be0fc

2023-10-31 matanlurey@users.noreply.github.com [Impeller] OpenGLES MSAA Render Buffers (i.e. for stencils) (flutter/engine#47495)
2023-10-31 flar@google.com [Impeller] Migrate unit tests to named Rect factories (flutter/engine#47430)
2023-10-31 khalidcomilla58@gmail.com [Typo fixed] in DEPS (flutter/engine#47440)
2023-10-31 jonahwilliams@google.com [Impeller] Restore GLES GPU query times. (flutter/engine#47511)

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 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://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
ksokolovskyi pushed a commit to ksokolovskyi/flutter that referenced this pull request Oct 31, 2023
…lutter#137635)

flutter/engine@4da3e5b...39be0fc

2023-10-31 matanlurey@users.noreply.github.com [Impeller] OpenGLES MSAA Render Buffers (i.e. for stencils) (flutter/engine#47495)
2023-10-31 flar@google.com [Impeller] Migrate unit tests to named Rect factories (flutter/engine#47430)
2023-10-31 khalidcomilla58@gmail.com [Typo fixed] in DEPS (flutter/engine#47440)
2023-10-31 jonahwilliams@google.com [Impeller] Restore GLES GPU query times. (flutter/engine#47511)

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 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://issues.skia.org/issues/new?component=1389291&template=1850622

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 e: impeller

Projects

No open projects
Archived in project

2 participants