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

Conversation

@matanlurey
Copy link
Contributor

Closes flutter/flutter#147259.

Changes:

  • Make sure the default of kNearest is used consistently
  • Partial revert of [Impeller] Remove MipFilter::kNone redux #40491, re-adding kBase
  • Added some documentation about relevant enums, and why the default is kNearest
  • Wired up kBase in the Metal, Vulkan, and OpenGLES backends

Expecting an update to the dart_ui_filter_quality_none golden file:

Screenshot 2024-05-13 at 2 47 49 PM

For breadcrumbs around the mapping, see flutter/flutter#148253.


switch (mip_filter.value()) {
MipFilter mip_filter = MipFilter::kNearest) {
switch (mip_filter) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@chinmaygarde to confirm, I think I remember this being weird because I had to fake support no mips.

Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect we still need to treat an unspecified param as kBase here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PTAL again, made some adjustments

Copy link
Contributor

Choose a reason for hiding this comment

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

looks good to me

// `MipFilter::kNearest` is the default value for mip filters, as it
// cooresponds with the framework's `FilterQuality.low`. If we ever change the
// default filter quality, we should update this function to match.
sampler_desc.mip_filter = MipFilter::kNearest;
Copy link
Contributor

Choose a reason for hiding this comment

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

Its probably correct for this to be changed to base since we don't generate mipmaps for glyph atlas (as they glyphs are generated at exact scales)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

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

@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 #52779 at sha e7f0495

@matanlurey
Copy link
Contributor Author

matanlurey commented May 13, 2024

Oops, definitely broke OpenGLES. Will revisit tomorrow morning.

@matanlurey matanlurey requested a review from jonahwilliams May 14, 2024 16:33

#include "impeller/renderer/backend/gles/sampler_gles.h"

#include "GLES3/gl3.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you don't want this include here

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

@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

Changes reported for pull request #52779 at sha 459759b

@matanlurey
Copy link
Contributor Author

@chinmaygarde: I'm going to merge this, but comments still welcome after the fact.

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

flutter/engine@bf1c6da...41b86b5

2024-05-15 [email protected] Roll Skia from 475559da107d to b9a304eb05d2 (1 revision) (flutter/engine#52857)
2024-05-15 [email protected] Migrate TextInputSemanticsObject to ARC (flutter/engine#52785)
2024-05-15 [email protected] Roll Fuchsia Linux SDK from NbCi2ETfLHPLLB-JV... to Ftw7GopnudHydGS1y... (flutter/engine#52853)
2024-05-15 [email protected] Roll Dart SDK from 7d9de0c0b231 to f773d45634ed (2 revisions) (flutter/engine#52854)
2024-05-15 [email protected] Roll buildroot (flutter/engine#52826)
2024-05-15 [email protected] Roll Skia from 4a7419d662d5 to 475559da107d (5 revisions) (flutter/engine#52848)
2024-05-15 [email protected] Roll Skia from a9ba7411d4b2 to 4a7419d662d5 (1 revision) (flutter/engine#52844)
2024-05-15 [email protected] Roll Dart SDK from 1eec9de2f9c6 to 7d9de0c0b231 (1 revision) (flutter/engine#52841)
2024-05-15 [email protected] Roll Skia from b3aadd56d187 to a9ba7411d4b2 (1 revision) (flutter/engine#52839)
2024-05-15 [email protected] Roll Skia from c0caf10486ce to b3aadd56d187 (3 revisions) (flutter/engine#52837)
2024-05-15 [email protected] Roll Skia from fad584324d85 to c0caf10486ce (1 revision) (flutter/engine#52835)
2024-05-15 [email protected] Migrate SemanticsObject and FlutterSemanticsScrollView to ARC (flutter/engine#52824)
2024-05-15 [email protected] Roll Dart SDK from 0b77fbab8cf5 to 1eec9de2f9c6 (1 revision) (flutter/engine#52833)
2024-05-15 [email protected] Roll Skia from d0d87c26b489 to fad584324d85 (1 revision) (flutter/engine#52831)
2024-05-15 [email protected] Re-add `MipFilter::kBase`, but keep `kNearest` as the default. (flutter/engine#52779)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from NbCi2ETfLHPL to Ftw7GopnudHy

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://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 will affect goldens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Impeller] Support impeller::MipFilter::kBase for sampling from the base mip level.

2 participants