summaryrefslogtreecommitdiff
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-16 09:51:37 -0400
committerGravatar Fernando Sahmkow2020-04-22 11:36:06 -0400
commitda8f17715dbdc7eec92f5f0c11c968a51b86cab4 (patch)
treea1604f3cf9abe9128d26834f9c68161ecab6e204 /src/video_core/texture_cache
parentTexture Cache: Implement OnCPUWrite and SyncGuestHost (diff)
downloadyuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.tar.gz
yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.tar.xz
yuzu-da8f17715dbdc7eec92f5f0c11c968a51b86cab4.zip
GPU: Refactor synchronization on Async GPU
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 441fda53d..c23b9f9b9 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -63,7 +63,7 @@ public:
63 } 63 }
64 } 64 }
65 65
66 void OnCPUWrite(CacheAddr addr, std::size_t size) { 66 void OnCPUWrite(VAddr addr, std::size_t size) {
67 std::lock_guard lock{mutex}; 67 std::lock_guard lock{mutex};
68 68
69 for (const auto& surface : GetSurfacesInRegion(addr, size)) { 69 for (const auto& surface : GetSurfacesInRegion(addr, size)) {
@@ -549,7 +549,7 @@ private:
549 } 549 }
550 const auto& final_params = new_surface->GetSurfaceParams(); 550 const auto& final_params = new_surface->GetSurfaceParams();
551 if (cr_params.type != final_params.type) { 551 if (cr_params.type != final_params.type) {
552 if (Settings::values.use_accurate_gpu_emulation) { 552 if (Settings::IsGPULevelExtreme()) {
553 BufferCopy(current_surface, new_surface); 553 BufferCopy(current_surface, new_surface);
554 } 554 }
555 } else { 555 } else {