diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2024-01-07 07:52:09 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-01-18 21:12:30 -0500 |
commit | 648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37 (patch) | |
tree | a04969c1af408b377981b395a8f437b852f8b208 /src/core/core.h | |
parent | 23430e67724d803184b6a861e4bcb3cac0e38cb0 (diff) |
Core: Make sure GPU Dirty Managers ae shared by all processes.
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 20ec2ffff..80446f385 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -8,6 +8,7 @@ #include <functional> #include <memory> #include <mutex> +#include <span> #include <string> #include <vector> @@ -116,6 +117,7 @@ class CpuManager; class Debugger; class DeviceMemory; class ExclusiveMonitor; +class GPUDirtyMemoryManager; class PerfStats; class Reporter; class SpeedLimiter; @@ -224,6 +226,8 @@ public: /// Prepare the core emulation for a reschedule void PrepareReschedule(u32 core_index); + std::span<GPUDirtyMemoryManager> GetGPUDirtyMemoryManager(); + void GatherGPUDirtyMemory(std::function<void(PAddr, size_t)>& callback); [[nodiscard]] size_t GetCurrentHostThreadID() const; |