mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 07:38:41 +00:00
Remove from_compute check in texture cache invalidation (hack)
This commit is contained in:
parent
0ba8eee30d
commit
f063b031d7
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ TextureCache::~TextureCache() = default;
|
||||||
void TextureCache::InvalidateMemory(VAddr address, size_t size, bool from_compute) {
|
void TextureCache::InvalidateMemory(VAddr address, size_t size, bool from_compute) {
|
||||||
std::unique_lock lock{mutex};
|
std::unique_lock lock{mutex};
|
||||||
ForEachImageInRegion(address, size, [&](ImageId image_id, Image& image) {
|
ForEachImageInRegion(address, size, [&](ImageId image_id, Image& image) {
|
||||||
if (from_compute && !image.Overlaps(address, size)) {
|
if (!image.Overlaps(address, size)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Ensure image is reuploaded when accessed again.
|
// Ensure image is reuploaded when accessed again.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue