diff options
| author | 2023-12-25 07:32:16 +0100 | |
|---|---|---|
| committer | 2024-01-18 21:12:30 -0500 | |
| commit | 0a2536a0df1f4aea406f2132d3edda0430acc9d1 (patch) | |
| tree | c0ad53890581c9c7e180c5ccb3b66e3c63e3ba64 /src/video_core/gpu.h | |
| parent | SMMU: Implement backing CPU page protect/unprotect (diff) | |
| download | yuzu-0a2536a0df1f4aea406f2132d3edda0430acc9d1.tar.gz yuzu-0a2536a0df1f4aea406f2132d3edda0430acc9d1.tar.xz yuzu-0a2536a0df1f4aea406f2132d3edda0430acc9d1.zip | |
SMMU: Initial adaptation to video_core.
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index ba2838b89..b3c1d15bd 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -158,7 +158,7 @@ public: | |||
| 158 | void InitAddressSpace(Tegra::MemoryManager& memory_manager); | 158 | void InitAddressSpace(Tegra::MemoryManager& memory_manager); |
| 159 | 159 | ||
| 160 | /// Request a host GPU memory flush from the CPU. | 160 | /// Request a host GPU memory flush from the CPU. |
| 161 | [[nodiscard]] u64 RequestFlush(VAddr addr, std::size_t size); | 161 | [[nodiscard]] u64 RequestFlush(DAddr addr, std::size_t size); |
| 162 | 162 | ||
| 163 | /// Obtains current flush request fence id. | 163 | /// Obtains current flush request fence id. |
| 164 | [[nodiscard]] u64 CurrentSyncRequestFence() const; | 164 | [[nodiscard]] u64 CurrentSyncRequestFence() const; |
| @@ -242,20 +242,20 @@ public: | |||
| 242 | void SwapBuffers(const Tegra::FramebufferConfig* framebuffer); | 242 | void SwapBuffers(const Tegra::FramebufferConfig* framebuffer); |
| 243 | 243 | ||
| 244 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory | 244 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory |
| 245 | [[nodiscard]] VideoCore::RasterizerDownloadArea OnCPURead(VAddr addr, u64 size); | 245 | [[nodiscard]] VideoCore::RasterizerDownloadArea OnCPURead(DAddr addr, u64 size); |
| 246 | 246 | ||
| 247 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory | 247 | /// Notify rasterizer that any caches of the specified region should be flushed to Switch memory |
| 248 | void FlushRegion(VAddr addr, u64 size); | 248 | void FlushRegion(DAddr addr, u64 size); |
| 249 | 249 | ||
| 250 | /// Notify rasterizer that any caches of the specified region should be invalidated | 250 | /// Notify rasterizer that any caches of the specified region should be invalidated |
| 251 | void InvalidateRegion(VAddr addr, u64 size); | 251 | void InvalidateRegion(DAddr addr, u64 size); |
| 252 | 252 | ||
| 253 | /// Notify rasterizer that CPU is trying to write this area. It returns true if the area is | 253 | /// Notify rasterizer that CPU is trying to write this area. It returns true if the area is |
| 254 | /// sensible, false otherwise | 254 | /// sensible, false otherwise |
| 255 | bool OnCPUWrite(VAddr addr, u64 size); | 255 | bool OnCPUWrite(DAddr addr, u64 size); |
| 256 | 256 | ||
| 257 | /// Notify rasterizer that any caches of the specified region should be flushed and invalidated | 257 | /// Notify rasterizer that any caches of the specified region should be flushed and invalidated |
| 258 | void FlushAndInvalidateRegion(VAddr addr, u64 size); | 258 | void FlushAndInvalidateRegion(DAddr addr, u64 size); |
| 259 | 259 | ||
| 260 | private: | 260 | private: |
| 261 | struct Impl; | 261 | struct Impl; |