Remove from_compute check in texture cache invalidation (hack)
This commit is contained in:
parent
0ba8eee30d
commit
f063b031d7
|
@ -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…
Reference in New Issue