diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-28 03:35:15 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-31 19:07:27 +0200 |
commit | d647d9550c838fdfb16ad053f3ff243de3e15482 (patch) | |
tree | 8bde428c4c670d134dd13b849044e4369566d8f9 /src/video_core/rasterizer_cache.h | |
parent | gl_rasterizer: Fix issues with the rasterizer cache. (diff) | |
download | yuzu-d647d9550c838fdfb16ad053f3ff243de3e15482.tar yuzu-d647d9550c838fdfb16ad053f3ff243de3e15482.tar.gz yuzu-d647d9550c838fdfb16ad053f3ff243de3e15482.tar.bz2 yuzu-d647d9550c838fdfb16ad053f3ff243de3e15482.tar.lz yuzu-d647d9550c838fdfb16ad053f3ff243de3e15482.tar.xz yuzu-d647d9550c838fdfb16ad053f3ff243de3e15482.tar.zst yuzu-d647d9550c838fdfb16ad053f3ff243de3e15482.zip |
Diffstat (limited to 'src/video_core/rasterizer_cache.h')
-rw-r--r-- | src/video_core/rasterizer_cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/rasterizer_cache.h b/src/video_core/rasterizer_cache.h index 51245f502..599d39f62 100644 --- a/src/video_core/rasterizer_cache.h +++ b/src/video_core/rasterizer_cache.h @@ -17,7 +17,7 @@ template <class T> class RasterizerCache : NonCopyable { public: /// Mark the specified region as being invalidated - void InvalidateRegion(Tegra::GPUVAddr region_addr, size_t region_size) { + void InvalidateRegion(VAddr region_addr, size_t region_size) { for (auto iter = cached_objects.cbegin(); iter != cached_objects.cend();) { const auto& object{iter->second}; @@ -33,7 +33,7 @@ public: protected: /// Tries to get an object from the cache with the specified address - T TryGet(Tegra::GPUVAddr addr) const { + T TryGet(VAddr addr) const { const auto& search{cached_objects.find(addr)}; if (search != cached_objects.end()) { return search->second; @@ -43,7 +43,7 @@ protected: } /// Gets a reference to the cache - const std::unordered_map<Tegra::GPUVAddr, T>& GetCache() const { + const std::unordered_map<VAddr, T>& GetCache() const { return cached_objects; } @@ -74,5 +74,5 @@ protected: } private: - std::unordered_map<Tegra::GPUVAddr, T> cached_objects; + std::unordered_map<VAddr, T> cached_objects; }; |