diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-06-01 09:49:35 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-06-08 10:01:00 +0200 |
commit | 3c2ae53b4c574deb4f9afe3104c7d022c53c5281 (patch) | |
tree | a66e762e1fadaebdd05b7f13a6dade2ed5129aa6 /src/video_core/texture_cache/texture_cache.h | |
parent | texture_cache: Implement rendering to 3D textures (diff) | |
download | yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.gz yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.bz2 yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.lz yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.xz yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.tar.zst yuzu-3c2ae53b4c574deb4f9afe3104c7d022c53c5281.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 4ee0d76b9..60b95a854 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -755,6 +755,8 @@ private: } TSurface new_surface = GetUncachedSurface(gpu_addr, params); + LoadSurface(new_surface); + bool modified = false; for (auto& surface : overlaps) { const SurfaceParams& src_params = surface->GetSurfaceParams(); @@ -763,7 +765,10 @@ private: src_params.block_height != params.block_height) { return std::nullopt; } - modified |= surface->IsModified(); + if (!surface->IsModified()) { + continue; + } + modified = true; const u32 offset = static_cast<u32>(surface->GetCpuAddr() - cpu_addr); const u32 slice = std::get<2>(params.GetBlockOffsetXYZ(offset)); |