Skip to content
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

Adreno shutdown crash workaround #11786

Merged
merged 2 commits into from
Feb 10, 2019

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Feb 10, 2019

Turns out that if we keep a gl buffer mapped for writing, when the activity closes the buffer just disappears instantly (or, I haven't identified exactly where it disappears so we can wait the emuthread properly), causing a race with the emuthread.

Fixes #11739 , #11726 ,

It's a race during shutdown between the EmuThread writing commands, and
the render thread which just lost the buffer.
@unknownbrackets unknownbrackets merged commit 3b7e0a7 into master Feb 10, 2019
@unknownbrackets
Copy link
Collaborator

What does Dolphin do - I thought, at least at some point, that they used mapped buffers?

At least during shutdown, it seems like we should be able to unmap correctly. But not sure how to handle task switching indeed...

-[Unknown]

@hrydgard
Copy link
Owner Author

Yeah, we just need to figure that out somehow.. I think it can be rescued, but I don't have the time or energy to dig into it. Focusing on burning down the 1.8.0 milestone.

@hrydgard hrydgard deleted the adreno-shutdown-crash-workaround branch February 10, 2019 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ppsspp on Android screen auto rotate crash
2 participants