mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #2198] [MERGED] texture_cache: Lock when updating image. #2555
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2555
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2198
Author: @squidbus
Created: 1/20/2025
Status: ✅ Merged
Merged: 1/20/2025
Merged by: @psucien
Base:
main← Head:cache-lock📝 Commits (1)
8d6a799texture_cache: Lock when updating image.📊 Changes
2 files changed (+3 additions, -4 deletions)
View changed files
📝
src/video_core/texture_cache/texture_cache.cpp(+2 -4)📝
src/video_core/texture_cache/texture_cache.h(+1 -0)📄 Description
UpdateImageneed to acquire lock in order to prevent race conditions updating tracking status. Also fixed up the range check inInvalidateMemoryto 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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.