-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[Impeller] fix validation check when restoring to onscreen with BDF and mips. #165098
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
Conversation
if (!EnsureFinalMipmapGeneration() || | ||
!renderer_.GetContext()->FlushCommandBuffers()) { |
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.
Split this into 2 different validation messages. Muxing these will just make it harder to debug if they show up.
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.
Done
if (GetBackend() != PlaygroundBackend::kOpenGLES) { | ||
GTEST_SKIP() << "Only relevant for GLES"; | ||
} |
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.
This wouldn't work for other backends though?
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.
Right, other backends won't fail this case.
…nd mips. (flutter#165098) Fixes flutter#163421 If we restore to the onscreen but need to generate mips (because its a toImage call) then we could miss the mip map generation. This will primarily happen on Android emulators as they do not support framebuffer fetch.
… mips. (#165430) cherry-pick of #165098 ## Impacted Users Impeller users developing on the Android Emulator (or some old hardware) ## Impact Description Crash in the Flutter app ## Workaround (Is there a workaround for this issue?) Use a real android device. ## Risk (What is the risk level of this cherry-pick?) ## Test Coverage (Are you confident that your fix is well-tested by automated tests?) Yes, there is an integration test that captures most of the problem. ## Validation Steps (What are the steps to validate that this fix works?) #163421 has reproduction steps
… mips. (flutter#165430) cherry-pick of flutter#165098 ## Impacted Users Impeller users developing on the Android Emulator (or some old hardware) ## Impact Description Crash in the Flutter app ## Workaround (Is there a workaround for this issue?) Use a real android device. ## Risk (What is the risk level of this cherry-pick?) ## Test Coverage (Are you confident that your fix is well-tested by automated tests?) Yes, there is an integration test that captures most of the problem. ## Validation Steps (What are the steps to validate that this fix works?) flutter#163421 has reproduction steps
Fixes #163421
If we restore to the onscreen but need to generate mips (because its a toImage call) then we could miss the mip map generation. This will primarily happen on Android emulators as they do not support framebuffer fetch.