-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] OpenGLES MSAA Render Buffers (i.e. for stencils) #47495
[Impeller] OpenGLES MSAA Render Buffers (i.e. for stencils) #47495
Conversation
| return is_msaa ? TextureGLES::Type::kRenderBufferMultisampled | ||
| : TextureGLES::Type::kRenderBuffer; |
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.
This should something like usage == render_target && desc.pixelformat == PixelFormat::S8
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.
or maybe pixelformat != PixelFormat::whatever_the_gl_pixel_format_is
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.
or maybe even better just pass in the expected attachment point and use that.
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.
Unfortuantely the TextureGLES is created far before the concept of attachment points :-/
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.
RIP. The formats for GLES are more or less constant, though if that changes this will be a fun landmine 😆
|
Making sure to only use render buffers for stencils solves the artifact issue :) |
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
…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
…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
Closes flutter/flutter#137569.
Closes flutter/flutter#137095.
As of the latest commit, it works on both the Moto G4 and Pixel 5.