summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-05-04 13:23:36 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2023-05-07 23:46:12 +0200
commit36c302fa32b475abb1b211934eab14fe0cad936a (patch)
tree15403930756191fe3bdae622a4665b56caa2f4e5 /src/tests
parentAddress feedback, add CR notice, etc (diff)
downloadyuzu-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')
-rw-r--r--src/tests/video_core/memory_tracker.cpp4
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));