aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache/map_interval.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-16 10:08:07 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-04-22 11:36:07 -0400
commit8b1eb44b3ed5483071dc6754662a277b45e4a809 (patch)
treeed985a775881cce60a98ab7ddc43803ccf7d463c /src/video_core/buffer_cache/map_interval.h
parentda8f17715dbdc7eec92f5f0c11c968a51b86cab4 (diff)
BufferCache: Implement OnCPUWrite and SyncGuestHost
Diffstat (limited to 'src/video_core/buffer_cache/map_interval.h')
-rw-r--r--src/video_core/buffer_cache/map_interval.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/video_core/buffer_cache/map_interval.h b/src/video_core/buffer_cache/map_interval.h
index b0956029d..29d8b26f3 100644
--- a/src/video_core/buffer_cache/map_interval.h
+++ b/src/video_core/buffer_cache/map_interval.h
@@ -46,6 +46,22 @@ public:
return is_registered;
}
+ void SetMemoryMarked(bool is_memory_marked_) {
+ is_memory_marked = is_memory_marked_;
+ }
+
+ bool IsMemoryMarked() const {
+ return is_memory_marked;
+ }
+
+ void SetSyncPending(bool is_sync_pending_) {
+ is_sync_pending = is_sync_pending_;
+ }
+
+ bool IsSyncPending() const {
+ return is_sync_pending;
+ }
+
VAddr GetStart() const {
return start;
}
@@ -83,6 +99,8 @@ private:
bool is_written{};
bool is_modified{};
bool is_registered{};
+ bool is_memory_marked{};
+ bool is_sync_pending{};
u64 ticks{};
};