From 83ec2091c1836bf32e9070d0ddf2a53288871d69 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Sat, 10 Aug 2019 12:50:38 -0400 Subject: Buffer Cache: Adress Feedback. --- src/video_core/buffer_cache/buffer_block.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/video_core/buffer_cache/buffer_block.h') 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: return (cache_addr < end) && (cache_addr_end > start); } - bool IsInside(const CacheAddr other_start, const CacheAddr other_end) { - return (cache_addr <= other_start && other_end <= cache_addr_end); + bool IsInside(const CacheAddr other_start, const CacheAddr other_end) const { + return cache_addr <= other_start && other_end <= cache_addr_end; } u8* GetWritableHostPtr() const { @@ -61,8 +61,7 @@ public: } protected: - explicit BufferBlock(CacheAddr cache_addr,const std::size_t size) - : size{size} { + explicit BufferBlock(CacheAddr cache_addr, const std::size_t size) : size{size} { SetCacheAddr(cache_addr); } ~BufferBlock() = default; -- cgit v1.2.3