From 672432372db1a0691a107f1634e43967993684d2 Mon Sep 17 00:00:00 2001 From: lizzie Date: Wed, 1 Jul 2026 16:24:09 +0000 Subject: [PATCH] no relaxed flush then --- src/core/memory.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index ed77203d66..a669e714e5 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -753,12 +753,11 @@ struct Memory::Impl { } }; auto& gpu = system.GPU(); - gpu_device_memory->ApplyOpOnPointer(p, scratch_buffers[core], [&](DAddr address) { + gpu_device_memory->ApplyOpOnPointer(p, scratch_buffers[core], [&](DAddr addr) { if (flush) { - auto const wait_fence = gpu.RequestFlush(address, size); - gpu.WaitForSyncOperation(wait_fence); + void(gpu.OnCPURead(addr, size)); } - gpu.InvalidateRegion(address, size); + gpu.InvalidateRegion(addr, size); }); }