MemoryTracking: Initial setup of atomic writes.
This commit is contained in:
parent
088017b179
commit
7ae0cdbb09
8 changed files with 183 additions and 14 deletions
|
@ -95,7 +95,9 @@ struct GPU::Impl {
|
|||
|
||||
/// Synchronizes CPU writes with Host GPU memory.
|
||||
void InvalidateGPUCache() {
|
||||
rasterizer->InvalidateGPUCache();
|
||||
std::function<void(VAddr, size_t)> callback_writes(
|
||||
[this](VAddr address, size_t size) { rasterizer->OnCPUWrite(address, size); });
|
||||
system.GatherGPUDirtyMemory(callback_writes);
|
||||
}
|
||||
|
||||
/// Signal the ending of command list.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue