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

texture_cache: Lock when updating image. #2198

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

squidbus
Copy link
Collaborator

UpdateImage need to acquire lock in order to prevent race conditions updating tracking status. Also fixed up the range check in InvalidateMemory to use the existing image overlap function.

Fixes possible crash due to tracking asserts. Texture cache will probably need a pass in the future to clean up/reduce locking.

@psucien psucien merged commit 95a30b2 into shadps4-emu:main Jan 20, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants