-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable _Float16
"half-float" Functionality Only When Available.
#49851
Enable _Float16
"half-float" Functionality Only When Available.
#49851
Conversation
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 "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use 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. |
We actually only use the half types on iOS and macOS platforms, everywhere else we end up using floats for compatibility reasons. You could ifdef out the Half precision support for non-apple platforms, but you'd also need to turn off the tests in the non-apple configurations as well. |
Thanks for this Jonah. I'll take that approach. Will update this in a few hours. |
3c00aa1
to
f2e4ba5
Compare
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. |
You also need to update the ifdef here: https://github.com/flutter/engine/blob/main/impeller/geometry/geometry_unittests.cc#L1623-L1654 |
f2e4ba5
to
8483da1
Compare
8483da1
to
7a3d111
Compare
Updated PR to green. |
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
auto label is removed for flutter/engine/49851, due to This PR has not met approval requirements for merging. The PR author is not a member of flutter-hackers and needs 1 more review(s) in order to merge this PR.
|
…142501) flutter/engine@65bf8b1...df5f1af 2024-01-29 johnoneil@users.noreply.github.com Enable `_Float16` "half-float" Functionality Only When Available. (flutter/engine#49851) 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 jacksongardner@google.com,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
Description:
We're cross-compiling impeller for Android, but x86 Android targets don't have half float (
_Float16
) _ support. This change disables half float support inimpeller/geometry/half.h
for platforms where the_Float16
builtin is lacking.As can be seen in
half.h
,Float16
support is enabled for all non-windows platforms, which doesn't not allow our use case.Issues
I can't seem to find a way to file an issue describing this, but
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.