diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-10 21:15:21 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-07-10 21:34:55 +0200 |
commit | 977904dd84b5ba2b974f55640bb807f0b5e9e4d0 (patch) | |
tree | 1b3a16691ab5835900a5eee0a05a871b6b774a71 /src/video_core/buffer_cache/buffer_base.h | |
parent | Buffer Cache: Fix GCC copmpile error (diff) | |
download | yuzu-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/video_core/buffer_cache/buffer_base.h')
-rw-r--r-- | src/video_core/buffer_cache/buffer_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/buffer_cache/buffer_base.h b/src/video_core/buffer_cache/buffer_base.h index 9e39858c8..c3318095c 100644 --- a/src/video_core/buffer_cache/buffer_base.h +++ b/src/video_core/buffer_cache/buffer_base.h @@ -235,6 +235,11 @@ public: ForEachModifiedRange<Type::GPU>(query_cpu_range, size, clear, func); } + template <typename Func> + void ForEachDownloadRangeAndClear(VAddr query_cpu_range, u64 size, Func&& func) { + ForEachModifiedRange<Type::GPU>(query_cpu_range, size, true, func); + } + /// Call 'func' for each GPU modified range and unmark those pages as GPU modified template <typename Func> void ForEachDownloadRange(Func&& func) { |