diff options
| -rw-r--r-- | src/video_core/query_cache.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/video_core/query_cache.h b/src/video_core/query_cache.h index 941de95c1..1528cc1dd 100644 --- a/src/video_core/query_cache.h +++ b/src/video_core/query_cache.h | |||
| @@ -255,7 +255,6 @@ private: | |||
| 255 | if (!in_range(query)) { | 255 | if (!in_range(query)) { |
| 256 | continue; | 256 | continue; |
| 257 | } | 257 | } |
| 258 | rasterizer.UpdatePagesCachedCount(query.GetCpuAddr(), query.SizeInBytes(), -1); | ||
| 259 | AsyncJobId async_job_id = query.GetAsyncJob(); | 258 | AsyncJobId async_job_id = query.GetAsyncJob(); |
| 260 | auto flush_result = query.Flush(async); | 259 | auto flush_result = query.Flush(async); |
| 261 | if (async_job_id == NULL_ASYNC_JOB_ID) { | 260 | if (async_job_id == NULL_ASYNC_JOB_ID) { |
| @@ -273,7 +272,6 @@ private: | |||
| 273 | 272 | ||
| 274 | /// Registers the passed parameters as cached and returns a pointer to the stored cached query. | 273 | /// Registers the passed parameters as cached and returns a pointer to the stored cached query. |
| 275 | CachedQuery* Register(VideoCore::QueryType type, VAddr cpu_addr, u8* host_ptr, bool timestamp) { | 274 | CachedQuery* Register(VideoCore::QueryType type, VAddr cpu_addr, u8* host_ptr, bool timestamp) { |
| 276 | rasterizer.UpdatePagesCachedCount(cpu_addr, CachedQuery::SizeInBytes(timestamp), 1); | ||
| 277 | const u64 page = static_cast<u64>(cpu_addr) >> YUZU_PAGEBITS; | 275 | const u64 page = static_cast<u64>(cpu_addr) >> YUZU_PAGEBITS; |
| 278 | return &cached_queries[page].emplace_back(static_cast<QueryCache&>(*this), type, cpu_addr, | 276 | return &cached_queries[page].emplace_back(static_cast<QueryCache&>(*this), type, cpu_addr, |
| 279 | host_ptr); | 277 | host_ptr); |