summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-07-10 21:15:21 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2021-07-10 21:34:55 +0200
commit977904dd84b5ba2b974f55640bb807f0b5e9e4d0 (patch)
tree1b3a16691ab5835900a5eee0a05a871b6b774a71 /src/tests
parentBuffer Cache: Fix GCC copmpile error (diff)
downloadyuzu-977904dd84b5ba2b974f55640bb807f0b5e9e4d0.tar
yuzu-977904dd84b5ba2b974f55640bb807f0b5e9e4d0.tar.gz
yuzu-977904dd84b5ba2b974f55640bb807f0b5e9e4d0.tar.bz2
yuzu-977904dd84b5ba2b974f55640bb807f0b5e9e4d0.tar.lz
yuzu-977904dd84b5ba2b974f55640bb807f0b5e9e4d0.tar.xz
yuzu-977904dd84b5ba2b974f55640bb807f0b5e9e4d0.tar.zst
yuzu-977904dd84b5ba2b974f55640bb807f0b5e9e4d0.zip
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/video_core/buffer_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/video_core/buffer_base.cpp b/src/tests/video_core/buffer_base.cpp
index cfcdc2253..9f5a54de4 100644
--- a/src/tests/video_core/buffer_base.cpp
+++ b/src/tests/video_core/buffer_base.cpp
@@ -536,7 +536,7 @@ TEST_CASE("BufferBase: Cached write downloads") {
REQUIRE(rasterizer.Count() == 63);
buffer.MarkRegionAsGpuModified(c + PAGE, PAGE);
int num = 0;
- buffer.ForEachDownloadRange(c, WORD, true, [&](u64 offset, u64 size) { ++num; });
+ buffer.ForEachDownloadRangeAndClear(c, WORD, [&](u64 offset, u64 size) { ++num; });
buffer.ForEachUploadRange(c, WORD, [&](u64 offset, u64 size) { ++num; });
REQUIRE(num == 0);
REQUIRE(!buffer.IsRegionCpuModified(c + PAGE, PAGE));