summaryrefslogtreecommitdiffstats
path: root/src/video_core/rasterizer_cache.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-07-03 04:27:04 +0200
committerGitHub <noreply@github.com>2019-07-03 04:27:04 +0200
commit2521007c09876699d9433ab0bf791932d45e768a (patch)
tree21431fc9c62b49eec293d15007228c4bb44f0def /src/video_core/rasterizer_cache.h
parentMerge pull request #2660 from bakugo/deltafragments (diff)
parentrasterizer_cache: Protect inherited caches from submission level (diff)
downloadyuzu-2521007c09876699d9433ab0bf791932d45e768a.tar
yuzu-2521007c09876699d9433ab0bf791932d45e768a.tar.gz
yuzu-2521007c09876699d9433ab0bf791932d45e768a.tar.bz2
yuzu-2521007c09876699d9433ab0bf791932d45e768a.tar.lz
yuzu-2521007c09876699d9433ab0bf791932d45e768a.tar.xz
yuzu-2521007c09876699d9433ab0bf791932d45e768a.tar.zst
yuzu-2521007c09876699d9433ab0bf791932d45e768a.zip
Diffstat (limited to 'src/video_core/rasterizer_cache.h')
-rw-r--r--src/video_core/rasterizer_cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/rasterizer_cache.h b/src/video_core/rasterizer_cache.h
index 0c4ea1494..6de1597a2 100644
--- a/src/video_core/rasterizer_cache.h
+++ b/src/video_core/rasterizer_cache.h
@@ -169,6 +169,8 @@ protected:
object->MarkAsModified(false, *this);
}
+ std::recursive_mutex mutex;
+
private:
/// Returns a list of cached objects from the specified memory region, ordered by access time
std::vector<T> GetSortedObjectsFromRegion(CacheAddr addr, u64 size) {
@@ -208,5 +210,4 @@ private:
IntervalCache interval_cache; ///< Cache of objects
u64 modified_ticks{}; ///< Counter of cache state ticks, used for in-order flushing
VideoCore::RasterizerInterface& rasterizer;
- std::recursive_mutex mutex;
};