Preserve image contents across unrelated buffer alias writes

This commit is contained in:
nmzik
2026-10-03 07:07:22 +04:00
parent 0d4f993358
commit ebe401d052
2 changed files with 40 additions and 6 deletions
+1 -1
View File
@@ -1838,7 +1838,7 @@ void TextureCache::InvalidateMemoryFromGPU(uint64_t address, uint64_t size) {
std::scoped_lock lock {m_lock};
for (const auto id: FindImagesInRegion(address, size, true)) {
auto& image = m_slot_images[id];
if (!image.Overlaps(address, size)) {
if (image.info.data.address != address) {
continue;
}
if (image.IsGpuModified()) {