relaxed flush

This commit is contained in:
lizzie
2026-07-01 07:00:26 +00:00
committed by crueter
parent 01a616704b
commit 7e30579a7a
+2 -1
View File
@@ -755,7 +755,8 @@ struct Memory::Impl {
auto& gpu = system.GPU();
gpu_device_memory->ApplyOpOnPointer(p, scratch_buffers[core], [&](DAddr address) {
if (flush) {
void(gpu.OnCPURead(address, size));
auto const wait_fence = gpu.RequestFlush(address, size);
gpu.WaitForSyncOperation(wait_fence);
}
gpu.InvalidateRegion(address, size);
});