renderer: defer clean buffer destruction on unmap

This commit is contained in:
nmzik
2026-08-23 17:11:46 +02:00
parent 3c016bead1
commit 825e5f1162
-4
View File
@@ -341,10 +341,6 @@ void BufferCache::UnmapMemory(uint64_t vaddr, uint64_t size) {
auto downloads = RecordDownloads(copies);
m_scheduler.FinishCurrent();
PublishDownloads(downloads);
} else if (!retired_buffers.empty()) {
// Image uploads can reference a clean cached buffer without owning it. Submit the active
// command stream before removing such backing.
m_scheduler.FinishCurrent();
}
for (const auto& [begin, bytes]: modified_buffers) {
m_gpu_modified_ranges.Subtract(begin, bytes);