mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 13:56:59 +01:00
renderer: defer clean buffer destruction on unmap
This commit is contained in:
@@ -341,10 +341,6 @@ void BufferCache::UnmapMemory(uint64_t vaddr, uint64_t size) {
|
|||||||
auto downloads = RecordDownloads(copies);
|
auto downloads = RecordDownloads(copies);
|
||||||
m_scheduler.FinishCurrent();
|
m_scheduler.FinishCurrent();
|
||||||
PublishDownloads(downloads);
|
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) {
|
for (const auto& [begin, bytes]: modified_buffers) {
|
||||||
m_gpu_modified_ranges.Subtract(begin, bytes);
|
m_gpu_modified_ranges.Subtract(begin, bytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user