-
Notifications
You must be signed in to change notification settings - Fork 6k
Reland: [Impeller] adds a plus advanced blend for f16 pixel formats #51756
Conversation
…l formats (flutter#51589)" (flutter#51741)" This reverts commit 9df2d3a.
@jonahwilliams please take a look. I know you would like to see us use a different pixel format. I think that sounds promising but it will be a bit of work to test and get 100% hooked up. That's work we should evaluate against the body of other work we need to do. It may not be worth pursuing immediately for just the plus blend. Let me know if you want to try it sort it out over gvc if that doesn't sound good. |
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.
I do not think this is the correct approach. MTLPixelFormatBGRA10_XR should full solve the problem and only requires an update to skia's image codecs, instead of us maintaning a separate and slower blend mode implementation for wide gamut.
It also fixes alpha problems we haven't found yet.
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
Discussed offline, summary:
- we're pretty sure this fixes plus, while the extended range fixed point needs more investigation. We may need clamping in shaders anyway with wide gamut wrt other color channels.
Hmm the golden bot didn't issue any notice, did the approvals from the first landing follow over? We can't blame force push this time. |
looks like it: https://flutter-engine-gold.skia.org/search?issue=51756&crs=github&patchsets=2, we're good |
I guess reverting prs should technically revoke golden approvals. |
…145938) flutter/engine@c176d11...b917b24 2024-03-28 [email protected] Test that `clangd --check` works at HEAD. (flutter/engine#50901) 2024-03-28 [email protected] Remove `--verbose` from clang_tidy execution on CI. (flutter/engine#51760) 2024-03-28 [email protected] Remove Android API v33 tests from CI. (flutter/engine#51751) 2024-03-28 [email protected] Reland: [Impeller] adds a plus advanced blend for f16 pixel formats (flutter/engine#51756) 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
This was about a 2ms regression on the draw vertices benchmark GPU frame time: |
…sts (#51787) #51756 had a bug in it when src alpha was not 1. There was no test coverage for this. I've added the fix and test coverage for all the blends. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide] and the [C++, Objective-C, Java style guides]. - [ ] I listed at least one issue that this PR fixes in the description above. - [x] I added new tests to check the change I am making or feature I am adding, or the PR is [test-exempt]. See [testing the engine] for instructions on writing and running engine tests. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I signed the [CLA]. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style [testing the engine]: https://github.com/flutter/flutter/wiki/Testing-the-engine [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat
…ormats (flutter#51756)" This reverts commit b50789f.
Relands #51589
Notice: This will adversely effect the performance of benchmarks that use the plus blend.
The fix is in 74397bc. I couldn't figure out how to get a test in the engine to cover it. The test is in the devicelab.
Here's what I attempted:
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.