diff options
author | Fernando Sahmkow <[email protected]> | 2023-05-04 13:23:36 +0200 |
---|---|---|
committer | Fernando Sahmkow <[email protected]> | 2023-05-07 23:46:12 +0200 |
commit | 36c302fa32b475abb1b211934eab14fe0cad936a (patch) | |
tree | 15403930756191fe3bdae622a4665b56caa2f4e5 /src/tests | |
parent | 6f90dff2938b5bd5e9311e924e8a29945f16ac18 (diff) | |
download | yuzu-mainline-36c302fa32b475abb1b211934eab14fe0cad936a.tar.gz yuzu-mainline-36c302fa32b475abb1b211934eab14fe0cad936a.zip |
Buffer cache: always use async buffer downloads and fix regression.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/video_core/memory_tracker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/video_core/memory_tracker.cpp b/src/tests/video_core/memory_tracker.cpp index 3981907a2..618793668 100644 --- a/src/tests/video_core/memory_tracker.cpp +++ b/src/tests/video_core/memory_tracker.cpp @@ -535,12 +535,12 @@ TEST_CASE("MemoryTracker: Cached write downloads") { memory_track->MarkRegionAsGpuModified(c + PAGE, PAGE); int num = 0; memory_track->ForEachDownloadRangeAndClear(c, WORD, [&](u64 offset, u64 size) { ++num; }); - REQUIRE(num == 1); + REQUIRE(num == 0); num = 0; memory_track->ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) { ++num; }); REQUIRE(num == 0); REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE, PAGE)); - REQUIRE(!memory_track->IsRegionGpuModified(c + PAGE, PAGE)); + REQUIRE(memory_track->IsRegionGpuModified(c + PAGE, PAGE)); memory_track->FlushCachedWrites(); REQUIRE(memory_track->IsRegionCpuModified(c + PAGE, PAGE)); REQUIRE(!memory_track->IsRegionGpuModified(c + PAGE, PAGE)); |