diff options
| author | 2023-01-06 07:31:39 -0500 | |
|---|---|---|
| committer | 2023-01-06 07:31:39 -0500 | |
| commit | 5bcbb8de45540bee7a64b7b1867f61c57f51ab88 (patch) | |
| tree | 49fd1c79dfefba1139ad1577a414ed07293ecf81 /src/video_core/rasterizer_interface.h | |
| parent | Merge pull request #9564 from FernandoS27/oops-i-did-it-again (diff) | |
| parent | BufferBase: Don't ignore GPU pages. (diff) | |
| download | yuzu-5bcbb8de45540bee7a64b7b1867f61c57f51ab88.tar.gz yuzu-5bcbb8de45540bee7a64b7b1867f61c57f51ab88.tar.xz yuzu-5bcbb8de45540bee7a64b7b1867f61c57f51ab88.zip | |
Merge pull request #9559 from FernandoS27/cached-writes
VideoCore: Implement Cached Writes, use fastmem for reading GPU memory and eliminate old stuffs
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
| -rw-r--r-- | src/video_core/rasterizer_interface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h index f44c7df50..1735b6164 100644 --- a/src/video_core/rasterizer_interface.h +++ b/src/video_core/rasterizer_interface.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include <functional> | 6 | #include <functional> |
| 7 | #include <optional> | 7 | #include <optional> |
| 8 | #include <span> | 8 | #include <span> |
| 9 | #include <utility> | ||
| 9 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 10 | #include "common/polyfill_thread.h" | 11 | #include "common/polyfill_thread.h" |
| 11 | #include "video_core/cache_types.h" | 12 | #include "video_core/cache_types.h" |
| @@ -95,6 +96,12 @@ public: | |||
| 95 | virtual void InvalidateRegion(VAddr addr, u64 size, | 96 | virtual void InvalidateRegion(VAddr addr, u64 size, |
| 96 | VideoCommon::CacheType which = VideoCommon::CacheType::All) = 0; | 97 | VideoCommon::CacheType which = VideoCommon::CacheType::All) = 0; |
| 97 | 98 | ||
| 99 | virtual void InnerInvalidation(std::span<const std::pair<VAddr, std::size_t>> sequences) { | ||
| 100 | for (const auto& [cpu_addr, size] : sequences) { | ||
| 101 | InvalidateRegion(cpu_addr, size); | ||
| 102 | } | ||
| 103 | } | ||
| 104 | |||
| 98 | /// Notify rasterizer that any caches of the specified region are desync with guest | 105 | /// Notify rasterizer that any caches of the specified region are desync with guest |
| 99 | virtual void OnCPUWrite(VAddr addr, u64 size) = 0; | 106 | virtual void OnCPUWrite(VAddr addr, u64 size) = 0; |
| 100 | 107 | ||