summaryrefslogtreecommitdiffstats
path: root/src/video_core/buffer_cache/buffer_base.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-08-31 18:11:21 +0200
committerGitHub <noreply@github.com>2021-08-31 18:11:21 +0200
commit956171f02452c7f1df3778abd9827aaebb536dd0 (patch)
tree908265b873c0f2529160454b5dc467104d5e8ac8 /src/video_core/buffer_cache/buffer_base.h
parentMerge pull request #6928 from ameerj/spirv-get-frontface (diff)
parentGarbage Collection: Make it more agressive on high priority mode. (diff)
downloadyuzu-956171f02452c7f1df3778abd9827aaebb536dd0.tar
yuzu-956171f02452c7f1df3778abd9827aaebb536dd0.tar.gz
yuzu-956171f02452c7f1df3778abd9827aaebb536dd0.tar.bz2
yuzu-956171f02452c7f1df3778abd9827aaebb536dd0.tar.lz
yuzu-956171f02452c7f1df3778abd9827aaebb536dd0.tar.xz
yuzu-956171f02452c7f1df3778abd9827aaebb536dd0.tar.zst
yuzu-956171f02452c7f1df3778abd9827aaebb536dd0.zip
Diffstat (limited to 'src/video_core/buffer_cache/buffer_base.h')
-rw-r--r--src/video_core/buffer_cache/buffer_base.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h
index c3318095c..be2113f5a 100644
--- a/src/video_core/buffer_cache/buffer_base.h
+++ b/src/video_core/buffer_cache/buffer_base.h
@@ -261,16 +261,6 @@ public:
stream_score += score;
}
- /// Sets the new frame tick
- void SetFrameTick(u64 new_frame_tick) noexcept {
- frame_tick = new_frame_tick;
- }
-
- /// Returns the new frame tick
- [[nodiscard]] u64 FrameTick() const noexcept {
- return frame_tick;
- }
-
/// Returns the likeliness of this being a stream buffer
[[nodiscard]] int StreamScore() const noexcept {
return stream_score;
@@ -307,6 +297,14 @@ public:
return words.size_bytes;
}
+ size_t getLRUID() const noexcept {
+ return lru_id;
+ }
+
+ void setLRUID(size_t lru_id_) {
+ lru_id = lru_id_;
+ }
+
private:
template <Type type>
u64* Array() noexcept {
@@ -603,9 +601,9 @@ private:
RasterizerInterface* rasterizer = nullptr;
VAddr cpu_addr = 0;
Words words;
- u64 frame_tick = 0;
BufferFlagBits flags{};
int stream_score = 0;
+ size_t lru_id = SIZE_MAX;
};
} // namespace VideoCommon