gpu: move the BDA sync queue from MemoryTracker into BufferCache

This commit is contained in:
nmzik committed 2026-10-24 01:05:19 +02:00
1 parent 07f6420273
commit f356fa3730
7 files changed
+71 -122

No files matched your search

@@ -134,7 +134,11 @@ void RenderContext::PrepareBda() {
m_bda_logged = true;
}
std::shared_lock lock(m_mapped_ranges_mutex);
m_buffer_cache.SynchronizeBda(m_mapped_ranges);
m_buffer_cache.TakeBdaSync().ForEach([this](uint64_t begin, uint64_t end) {
m_mapped_ranges.ForEachInRange(begin, end - begin, [this](uint64_t start, uint64_t finish) {
m_buffer_cache.SynchronizeBuffersInRange(start, finish - start);
});
});
m_fault_process_pending = true;
}