diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-05-04 13:23:36 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-05-07 23:46:12 +0200 |
commit | 36c302fa32b475abb1b211934eab14fe0cad936a (patch) | |
tree | 15403930756191fe3bdae622a4665b56caa2f4e5 /src/tests/video_core | |
parent | Address feedback, add CR notice, etc (diff) | |
download | yuzu-36c302fa32b475abb1b211934eab14fe0cad936a.tar yuzu-36c302fa32b475abb1b211934eab14fe0cad936a.tar.gz yuzu-36c302fa32b475abb1b211934eab14fe0cad936a.tar.bz2 yuzu-36c302fa32b475abb1b211934eab14fe0cad936a.tar.lz yuzu-36c302fa32b475abb1b211934eab14fe0cad936a.tar.xz yuzu-36c302fa32b475abb1b211934eab14fe0cad936a.tar.zst yuzu-36c302fa32b475abb1b211934eab14fe0cad936a.zip |
Diffstat (limited to 'src/tests/video_core')
-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)); |