summaryrefslogtreecommitdiff
path: root/src/video_core/query_cache.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2021-09-24 01:13:42 +0200
committerGravatar Fernando Sahmkow2021-09-24 01:13:42 +0200
commit8fdb51ab46079941175546242604b08054ca4306 (patch)
treef3af32249457d8ad9509268b7f6fd972eab8d9cc /src/video_core/query_cache.h
parentMerge pull request #7068 from behunin/patch-3 (diff)
downloadyuzu-8fdb51ab46079941175546242604b08054ca4306.tar.gz
yuzu-8fdb51ab46079941175546242604b08054ca4306.tar.xz
yuzu-8fdb51ab46079941175546242604b08054ca4306.zip
QueryCache: Flush queries in order of running.
Diffstat (limited to 'src/video_core/query_cache.h')
-rw-r--r--src/video_core/query_cache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/query_cache.h b/src/video_core/query_cache.h
index aac851253..a19b9f931 100644
--- a/src/video_core/query_cache.h
+++ b/src/video_core/query_cache.h
@@ -257,9 +257,9 @@ private:
257 257
258 void AsyncFlushQuery(VAddr addr) { 258 void AsyncFlushQuery(VAddr addr) {
259 if (!uncommitted_flushes) { 259 if (!uncommitted_flushes) {
260 uncommitted_flushes = std::make_shared<std::unordered_set<VAddr>>(); 260 uncommitted_flushes = std::make_shared<std::vector<VAddr>>();
261 } 261 }
262 uncommitted_flushes->insert(addr); 262 uncommitted_flushes->push_back(addr);
263 } 263 }
264 264
265 static constexpr std::uintptr_t PAGE_SIZE = 4096; 265 static constexpr std::uintptr_t PAGE_SIZE = 4096;
@@ -275,8 +275,8 @@ private:
275 275
276 std::array<CounterStream, VideoCore::NumQueryTypes> streams; 276 std::array<CounterStream, VideoCore::NumQueryTypes> streams;
277 277
278 std::shared_ptr<std::unordered_set<VAddr>> uncommitted_flushes{}; 278 std::shared_ptr<std::vector<VAddr>> uncommitted_flushes{};
279 std::list<std::shared_ptr<std::unordered_set<VAddr>>> committed_flushes; 279 std::list<std::shared_ptr<std::vector<VAddr>>> committed_flushes;
280}; 280};
281 281
282template <class QueryCache, class HostCounter> 282template <class QueryCache, class HostCounter>