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

Conversation

@jonahwilliams
Copy link
Contributor

According to https://registry.khronos.org/vulkan/specs/1.3/html/vkspec.html#interfaces-iointerfaces-matching , we shouldn't have to do this, but alas. On the PowerVR GPU in the Samsung SM T220, precision mismatches are causing rendering problems.

Fix this by ensuring the precision matches.

Fixes flutter/flutter#143573

@flutter-dashboard
Copy link

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.

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

I don't understand why the frag stages have relaxed precision without a qualifier. We can make the compiler dump these decorations out and match them up at PSO creation time for an more bulletproof solution though.

This LGTM to fix the reported issue.

@jonahwilliams
Copy link
Contributor Author

vertex stage is defaulting to highp, fragment stage to mediump

@jonahwilliams
Copy link
Contributor Author

Trying to switch what were originally fragment uniforms to varyings was a bit of a performance dead end. I think separately I'll refactor these back into fragment uniforms

@jonahwilliams
Copy link
Contributor Author

tested: malioc diff is a test (kind of)

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 9, 2024
@auto-submit auto-submit bot merged commit 5a824e2 into flutter:main Apr 9, 2024
@jonahwilliams jonahwilliams deleted the what_the_samsung branch April 9, 2024 01:49
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 9, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 9, 2024
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Impeller] PowerVR devices rendering incorrectly if vertex/fragment stage varyings have mismatched relaxed precision.

2 participants