diff options
| author | 2024-01-07 07:52:09 +0100 | |
|---|---|---|
| committer | 2024-01-18 21:12:30 -0500 | |
| commit | 648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37 (patch) | |
| tree | a04969c1af408b377981b395a8f437b852f8b208 /src/core/core.h | |
| parent | Core: Eliminate core/memory dependancies. (diff) | |
| download | yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.tar.gz yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.tar.xz yuzu-648ed55fe61f4f55f2a8c58d9bc2d4dca934cd37.zip | |
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 @@ | |||
| 8 | #include <functional> | 8 | #include <functional> |
| 9 | #include <memory> | 9 | #include <memory> |
| 10 | #include <mutex> | 10 | #include <mutex> |
| 11 | #include <span> | ||
| 11 | #include <string> | 12 | #include <string> |
| 12 | #include <vector> | 13 | #include <vector> |
| 13 | 14 | ||
| @@ -116,6 +117,7 @@ class CpuManager; | |||
| 116 | class Debugger; | 117 | class Debugger; |
| 117 | class DeviceMemory; | 118 | class DeviceMemory; |
| 118 | class ExclusiveMonitor; | 119 | class ExclusiveMonitor; |
| 120 | class GPUDirtyMemoryManager; | ||
| 119 | class PerfStats; | 121 | class PerfStats; |
| 120 | class Reporter; | 122 | class Reporter; |
| 121 | class SpeedLimiter; | 123 | class SpeedLimiter; |
| @@ -224,6 +226,8 @@ public: | |||
| 224 | /// Prepare the core emulation for a reschedule | 226 | /// Prepare the core emulation for a reschedule |
| 225 | void PrepareReschedule(u32 core_index); | 227 | void PrepareReschedule(u32 core_index); |
| 226 | 228 | ||
| 229 | std::span<GPUDirtyMemoryManager> GetGPUDirtyMemoryManager(); | ||
| 230 | |||
| 227 | void GatherGPUDirtyMemory(std::function<void(PAddr, size_t)>& callback); | 231 | void GatherGPUDirtyMemory(std::function<void(PAddr, size_t)>& callback); |
| 228 | 232 | ||
| 229 | [[nodiscard]] size_t GetCurrentHostThreadID() const; | 233 | [[nodiscard]] size_t GetCurrentHostThreadID() const; |