-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Use 32 bit for positional stuff in the rrect blur #42797
Conversation
|
This does also resolve an issue that would cause the blur to get screwed up and disappear as the blur nears 256, which was already resolved in the regular 2-pass blur. I can add a playground to catch that. |
| f16vec2 rect_size; | ||
| float16_t blur_sigma; | ||
| float16_t corner_radius; | ||
| vec2 rect_size; |
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.
here and elsewhere, mark these as highp so the issue is fixed for Vulkan too.
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.
err, not elsewhere, but like, in the declaration.
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 with nit
|
Mali json step is failing with no useful output, unfortunately. I'm assuming it doesn't like something syntactically. :/
|
18a9d3e to
997c85c
Compare
53a69d4 to
687c06b
Compare
This reverts commit a6c0488.
|
malioc is seeing an undeclared variable, which is quite strange. |
|
I'm going to land this without the I'd also like to get to a point where shader authors are not forced to contend with 3 different type resolution behaviors; Metal and Vulkan can be combined once we add support for 16 bit uniform buffer access to the Vulkan backend. |
…129092) flutter/engine@7ffa135...d298f0b 2023-06-18 [email protected] Fix prefer_final_in_foreach analysis errors (flutter/engine#42971) 2023-06-18 [email protected] Roll Fuchsia Linux SDK from xS5RzQLfpMEK1rNEd... to fgS2avQGq4x_sbZHU... (flutter/engine#42973) 2023-06-18 [email protected] Roll Fuchsia Mac SDK from aBEyk5N2HlwOqvpwo... to BuzniDS9u_hdghV5f... (flutter/engine#42970) 2023-06-18 [email protected] Roll Skia from dc2e0ebbd045 to f489be63a30a (1 revision) (flutter/engine#42968) 2023-06-18 [email protected] Roll Skia from 85b4788bc3f1 to dc2e0ebbd045 (1 revision) (flutter/engine#42967) 2023-06-18 [email protected] Roll Fuchsia Linux SDK from -PsA0LDB2FdS_4_vK... to xS5RzQLfpMEK1rNEd... (flutter/engine#42966) 2023-06-18 [email protected] [Impeller] Use 32 bit for positional stuff in the rrect blur (flutter/engine#42797) 2023-06-18 [email protected] Revert "[Impeller] correct default PSO pixel format and sample count." (flutter/engine#42962) 2023-06-18 [email protected] [Impeller] dont use concurrent runner to decode images on Android. (flutter/engine#42944) 2023-06-18 [email protected] Roll Fuchsia Mac SDK from I1G8Ll0KcxmAoMT8u... to aBEyk5N2HlwOqvpwo... (flutter/engine#42964) 2023-06-18 [email protected] Roll Skia from c56f38d79fe0 to 85b4788bc3f1 (2 revisions) (flutter/engine#42963) 2023-06-17 [email protected] Roll Fuchsia Linux SDK from Au1gd3XLMuSt1Z4oh... to -PsA0LDB2FdS_4_vK... (flutter/engine#42959) 2023-06-17 [email protected] Roll Dart SDK from d1faf69c8253 to 5a9e97eebbed (1 revision) (flutter/engine#42958) 2023-06-17 [email protected] Roll Skia from 2a9e11fd9d37 to c56f38d79fe0 (1 revision) (flutter/engine#42955) 2023-06-17 [email protected] Roll Fuchsia Mac SDK from JMStJe6efcLuWMT_I... to I1G8Ll0KcxmAoMT8u... (flutter/engine#42954) 2023-06-17 [email protected] Roll Dart SDK from 1a04f451a934 to d1faf69c8253 (1 revision) (flutter/engine#42953) 2023-06-17 [email protected] Roll Dart SDK from b3bcbdf7de8d to 1a04f451a934 (1 revision) (flutter/engine#42951) 2023-06-17 [email protected] Roll Skia from dc11c7ddb33f to 2a9e11fd9d37 (1 revision) (flutter/engine#42950) 2023-06-17 [email protected] [Impeller] Print malioc errors on CI (flutter/engine#42906) 2023-06-17 [email protected] Roll Dart SDK from 8eaed3382237 to b3bcbdf7de8d (10 revisions) (flutter/engine#42949) 2023-06-17 [email protected] Roll Fuchsia Linux SDK from -NW1eatBbmjvLaIcV... to Au1gd3XLMuSt1Z4oh... (flutter/engine#42948) 2023-06-17 [email protected] Fix analyzer warnings (prefer_final_in_for_each is now the default) (flutter/engine#42943) 2023-06-16 [email protected] Roll Fuchsia Mac SDK from fXVcR5tdj5wSd_OUz... to JMStJe6efcLuWMT_I... (flutter/engine#42942) 2023-06-16 [email protected] Roll Skia from 64fa632d3b01 to dc11c7ddb33f (3 revisions) (flutter/engine#42939) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from -NW1eatBbmjv to fgS2avQGq4x_ fuchsia/sdk/core/mac-amd64 from fXVcR5tdj5wS to BuzniDS9u_hd 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://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Resolves flutter/flutter#128410.
16 bit floats aren't precise enough for positional computations, like computing SDFs in the case of the RRect blur.
Unfortunately, I haven't been able to repro this particular glitch in a playground -- it seems to be iOS-specific. In macOS desktop frame captures the problem seems to go away.
Before:

After:
