diff options
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> | |||
| 17 | class RasterizerCache : NonCopyable { | 17 | class RasterizerCache : NonCopyable { |
| 18 | public: | 18 | public: |
| 19 | /// Mark the specified region as being invalidated | 19 | /// Mark the specified region as being invalidated |
| 20 | void InvalidateRegion(Tegra::GPUVAddr region_addr, size_t region_size) { | 20 | void InvalidateRegion(VAddr region_addr, size_t region_size) { |
| 21 | for (auto iter = cached_objects.cbegin(); iter != cached_objects.cend();) { | 21 | for (auto iter = cached_objects.cbegin(); iter != cached_objects.cend();) { |
| 22 | const auto& object{iter->second}; | 22 | const auto& object{iter->second}; |
| 23 | 23 | ||
| @@ -33,7 +33,7 @@ public: | |||
| 33 | 33 | ||
| 34 | protected: | 34 | protected: |
| 35 | /// Tries to get an object from the cache with the specified address | 35 | /// Tries to get an object from the cache with the specified address |
| 36 | T TryGet(Tegra::GPUVAddr addr) const { | 36 | T TryGet(VAddr addr) const { |
| 37 | const auto& search{cached_objects.find(addr)}; | 37 | const auto& search{cached_objects.find(addr)}; |
| 38 | if (search != cached_objects.end()) { | 38 | if (search != cached_objects.end()) { |
| 39 | return search->second; | 39 | return search->second; |
| @@ -43,7 +43,7 @@ protected: | |||
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | /// Gets a reference to the cache | 45 | /// Gets a reference to the cache |
| 46 | const std::unordered_map<Tegra::GPUVAddr, T>& GetCache() const { | 46 | const std::unordered_map<VAddr, T>& GetCache() const { |
| 47 | return cached_objects; | 47 | return cached_objects; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| @@ -74,5 +74,5 @@ protected: | |||
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | private: | 76 | private: |
| 77 | std::unordered_map<Tegra::GPUVAddr, T> cached_objects; | 77 | std::unordered_map<VAddr, T> cached_objects; |
| 78 | }; | 78 | }; |