diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-08-06 09:38:16 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-09-23 23:05:30 +0200 |
commit | 282ae8fa51e060e6d4ef026b734aa871b1b9331e (patch) | |
tree | 3bc4603b6add0582315dc65544f1986427e4182d /src/video_core/query_cache/query_cache_base.h | |
parent | QueryCache: Implement dependant queries. (diff) | |
download | yuzu-282ae8fa51e060e6d4ef026b734aa871b1b9331e.tar yuzu-282ae8fa51e060e6d4ef026b734aa871b1b9331e.tar.gz yuzu-282ae8fa51e060e6d4ef026b734aa871b1b9331e.tar.bz2 yuzu-282ae8fa51e060e6d4ef026b734aa871b1b9331e.tar.lz yuzu-282ae8fa51e060e6d4ef026b734aa871b1b9331e.tar.xz yuzu-282ae8fa51e060e6d4ef026b734aa871b1b9331e.tar.zst yuzu-282ae8fa51e060e6d4ef026b734aa871b1b9331e.zip |
Diffstat (limited to 'src/video_core/query_cache/query_cache_base.h')
-rw-r--r-- | src/video_core/query_cache/query_cache_base.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/query_cache/query_cache_base.h b/src/video_core/query_cache/query_cache_base.h index 55f508dd1..07be421c6 100644 --- a/src/video_core/query_cache/query_cache_base.h +++ b/src/video_core/query_cache/query_cache_base.h @@ -47,7 +47,7 @@ public: BitField<0, 27, u32> query_id; u32 raw; - std::pair<size_t, size_t> unpack() { + std::pair<size_t, size_t> unpack() const { return {static_cast<size_t>(stream_id.Value()), static_cast<size_t>(query_id.Value())}; } }; @@ -73,7 +73,7 @@ public: } } - static u64 BuildMask(std::span<QueryType> types) { + static u64 BuildMask(std::span<const QueryType> types) { u64 mask = 0; for (auto query_type : types) { mask |= 1ULL << (static_cast<u64>(query_type)); @@ -160,7 +160,7 @@ protected: } } - using ContentCache = typename std::unordered_map<u64, std::unordered_map<u32, QueryLocation>>; + using ContentCache = std::unordered_map<u64, std::unordered_map<u32, QueryLocation>>; void InvalidateQuery(QueryLocation location); bool IsQueryDirty(QueryLocation location); @@ -175,7 +175,7 @@ protected: friend struct QueryCacheBaseImpl; friend RuntimeType; - std::unique_ptr<struct QueryCacheBaseImpl> impl; + std::unique_ptr<QueryCacheBaseImpl> impl; }; } // namespace VideoCommon
\ No newline at end of file |