summaryrefslogtreecommitdiffstats
path: root/src/video_core/rasterizer_interface.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-01-05 04:05:20 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2023-01-05 11:23:39 +0100
commit6c7eb81f7d871f5c08a4844471633a67725aae73 (patch)
treed642b93700ff8527a7750d20551e96c58a36e90f /src/video_core/rasterizer_interface.h
parentMerge pull request #9501 from FernandoS27/yfc-rel-2 (diff)
downloadyuzu-6c7eb81f7d871f5c08a4844471633a67725aae73.tar
yuzu-6c7eb81f7d871f5c08a4844471633a67725aae73.tar.gz
yuzu-6c7eb81f7d871f5c08a4844471633a67725aae73.tar.bz2
yuzu-6c7eb81f7d871f5c08a4844471633a67725aae73.tar.lz
yuzu-6c7eb81f7d871f5c08a4844471633a67725aae73.tar.xz
yuzu-6c7eb81f7d871f5c08a4844471633a67725aae73.tar.zst
yuzu-6c7eb81f7d871f5c08a4844471633a67725aae73.zip
Diffstat (limited to 'src/video_core/rasterizer_interface.h')
-rw-r--r--src/video_core/rasterizer_interface.h7
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..6b66ad7b6 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -6,6 +6,7 @@
#include <functional>
#include <optional>
#include <span>
+#include <utility>
#include "common/common_types.h"
#include "common/polyfill_thread.h"
#include "video_core/cache_types.h"
@@ -95,6 +96,12 @@ public:
virtual void InvalidateRegion(VAddr addr, u64 size,
VideoCommon::CacheType which = VideoCommon::CacheType::All) = 0;
+ virtual void InnerInvalidation(std::span<const std::pair<VAddr, std::size_t>> sequences) {
+ for (const auto [cpu_addr, size] : sequences) {
+ InvalidateRegion(cpu_addr, size);
+ }
+ }
+
/// Notify rasterizer that any caches of the specified region are desync with guest
virtual void OnCPUWrite(VAddr addr, u64 size) = 0;