From 8fdb51ab46079941175546242604b08054ca4306 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Fri, 24 Sep 2021 01:13:42 +0200 Subject: QueryCache: Flush queries in order of running. --- src/video_core/query_cache.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/video_core') 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: void AsyncFlushQuery(VAddr addr) { if (!uncommitted_flushes) { - uncommitted_flushes = std::make_shared>(); + uncommitted_flushes = std::make_shared>(); } - uncommitted_flushes->insert(addr); + uncommitted_flushes->push_back(addr); } static constexpr std::uintptr_t PAGE_SIZE = 4096; @@ -275,8 +275,8 @@ private: std::array streams; - std::shared_ptr> uncommitted_flushes{}; - std::list>> committed_flushes; + std::shared_ptr> uncommitted_flushes{}; + std::list>> committed_flushes; }; template -- cgit v1.2.3