summaryrefslogtreecommitdiffstats
path: root/src/tests/video_core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-04-28 23:54:54 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2023-05-01 11:43:26 +0200
commitd6f565e5da22ec6a6a77ffabd88e59f3a25bcc96 (patch)
tree4abb992e6ae3dc1f9b4614b3d78a0d43a0e74e39 /src/tests/video_core
parentBuffer Cache: Release stagging buffers on tick frame (diff)
downloadyuzu-d6f565e5da22ec6a6a77ffabd88e59f3a25bcc96.tar
yuzu-d6f565e5da22ec6a6a77ffabd88e59f3a25bcc96.tar.gz
yuzu-d6f565e5da22ec6a6a77ffabd88e59f3a25bcc96.tar.bz2
yuzu-d6f565e5da22ec6a6a77ffabd88e59f3a25bcc96.tar.lz
yuzu-d6f565e5da22ec6a6a77ffabd88e59f3a25bcc96.tar.xz
yuzu-d6f565e5da22ec6a6a77ffabd88e59f3a25bcc96.tar.zst
yuzu-d6f565e5da22ec6a6a77ffabd88e59f3a25bcc96.zip
Diffstat (limited to 'src/tests/video_core')
-rw-r--r--src/tests/video_core/memory_tracker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/video_core/memory_tracker.cpp b/src/tests/video_core/memory_tracker.cpp
index 77d391f15..3981907a2 100644
--- a/src/tests/video_core/memory_tracker.cpp
+++ b/src/tests/video_core/memory_tracker.cpp
@@ -427,7 +427,7 @@ TEST_CASE("MemoryTracker: Single page in large region", "[video_core]") {
memory_track->MarkRegionAsCpuModified(c + WORD * 12 + PAGE * 8, PAGE);
REQUIRE(memory_track->IsRegionCpuModified(c, WORD * 16));
- REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 10, WORD * 2));
+ REQUIRE(!memory_track->IsRegionCpuModified(c + WORD * 10, WORD * 2));
REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 11, WORD * 2));
REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 12, WORD * 2));
REQUIRE(memory_track->IsRegionCpuModified(c + WORD * 12 + PAGE * 4, PAGE * 8));
@@ -535,6 +535,8 @@ 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);
+ num = 0;
memory_track->ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) { ++num; });
REQUIRE(num == 0);
REQUIRE(!memory_track->IsRegionCpuModified(c + PAGE, PAGE));