diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-20 11:42:53 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-08-21 12:14:25 -0400 |
| commit | 286f4c446ae2396da41ca09173070ae5beb10e8e (patch) | |
| tree | 8f11d51473813ccb0bf7cf0a2662131075f81695 /src/video_core/buffer_cache/map_interval.h | |
| parent | 5f4b746a1ee27d2e5e532f4f13f660ff08453474 (diff) | |
Buffer_Cache: Optimize and track written areas.
Diffstat (limited to 'src/video_core/buffer_cache/map_interval.h')
| -rw-r--r-- | src/video_core/buffer_cache/map_interval.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/map_interval.h b/src/video_core/buffer_cache/map_interval.h index a01eddf49..3a104d5cd 100644 --- a/src/video_core/buffer_cache/map_interval.h +++ b/src/video_core/buffer_cache/map_interval.h @@ -54,12 +54,33 @@ public: return end; } + void MarkAsModified(const bool is_modified_, const u64 tick) { + is_modified = is_modified_; + ticks = tick; + } + + bool IsModified() const { + return is_modified; + } + + u64 GetModificationTick() const { + return ticks; + } + + void MarkAsWritten(const bool is_written_) { + is_written = is_written_; + } + + bool IsWritten() const { + return is_written; + } + private: CacheAddr start; CacheAddr end; GPUVAddr gpu_addr; VAddr cpu_addr{}; - bool is_write{}; + bool is_written{}; bool is_modified{}; bool is_registered{}; u64 ticks{}; |
