Remove from_compute check in texture cache invalidation (hack)

This commit is contained in:
adjonesey 2024-08-30 09:37:50 +01:00 committed by GitHub
parent 0ba8eee30d
commit f063b031d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ TextureCache::~TextureCache() = default;
void TextureCache::InvalidateMemory(VAddr address, size_t size, bool from_compute) {
std::unique_lock lock{mutex};
ForEachImageInRegion(address, size, [&](ImageId image_id, Image& image) {
if (from_compute && !image.Overlaps(address, size)) {
if (!image.Overlaps(address, size)) {
return;
}
// Ensure image is reuploaded when accessed again.