diff options
Diffstat (limited to 'src/video_core/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_block.h | 7 |
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 | ||
| 63 | protected: | 63 | protected: |
| 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; |