summaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-08-10 12:50:38 -0400
committerGravatar FernandoS272019-08-21 12:14:27 -0400
commit83ec2091c1836bf32e9070d0ddf2a53288871d69 (patch)
tree01e8cc762d81d04ede0cb712288b018273e4376a /src/video_core/buffer_cache
parentBuffer_Cache: Implement flushing. (diff)
downloadyuzu-83ec2091c1836bf32e9070d0ddf2a53288871d69.tar.gz
yuzu-83ec2091c1836bf32e9070d0ddf2a53288871d69.tar.xz
yuzu-83ec2091c1836bf32e9070d0ddf2a53288871d69.zip
Buffer Cache: Adress Feedback.
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r--src/video_core/buffer_cache/buffer_block.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/video_core/buffer_cache/buffer_block.h b/src/video_core/buffer_cache/buffer_block.h
index 2c739a586..d2124443f 100644
--- a/src/video_core/buffer_cache/buffer_block.h
+++ b/src/video_core/buffer_cache/buffer_block.h
@@ -19,8 +19,8 @@ public:
19 return (cache_addr < end) && (cache_addr_end > start); 19 return (cache_addr < end) && (cache_addr_end > start);
20 } 20 }
21 21
22 bool IsInside(const CacheAddr other_start, const CacheAddr other_end) { 22 bool IsInside(const CacheAddr other_start, const CacheAddr other_end) const {
23 return (cache_addr <= other_start && other_end <= cache_addr_end); 23 return cache_addr <= other_start && other_end <= cache_addr_end;
24 } 24 }
25 25
26 u8* GetWritableHostPtr() const { 26 u8* GetWritableHostPtr() const {
@@ -61,8 +61,7 @@ public:
61 } 61 }
62 62
63protected: 63protected:
64 explicit BufferBlock(CacheAddr cache_addr,const std::size_t size) 64 explicit BufferBlock(CacheAddr cache_addr, const std::size_t size) : size{size} {
65 : size{size} {
66 SetCacheAddr(cache_addr); 65 SetCacheAddr(cache_addr);
67 } 66 }
68 ~BufferBlock() = default; 67 ~BufferBlock() = default;