diff options
| author | 2019-10-16 19:43:32 -0300 | |
|---|---|---|
| committer | 2019-10-16 19:43:32 -0300 | |
| commit | e00b529a899d7a257ed5a120f11d2b032b5c8fed (patch) | |
| tree | 2c9735c82a1935e30904da7aa08c006a13a0f739 /src | |
| parent | Merge pull request #2912 from FernandoS27/async-fixes (diff) | |
| parent | texture_cache: Avoid unnecessary surface copies within PickStrategy() and Try... (diff) | |
| download | yuzu-e00b529a899d7a257ed5a120f11d2b032b5c8fed.tar.gz yuzu-e00b529a899d7a257ed5a120f11d2b032b5c8fed.tar.xz yuzu-e00b529a899d7a257ed5a120f11d2b032b5c8fed.zip | |
Merge pull request #2982 from lioncash/surface
texture_cache: Avoid unnecessary surface copies within PickStrategy() and TryReconstructSurface()
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 4 |
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 ca2da8f97..0a23114f9 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -402,7 +402,7 @@ private: | |||
| 402 | if (params.block_depth > 1 || params.target == SurfaceTarget::Texture3D) { | 402 | if (params.block_depth > 1 || params.target == SurfaceTarget::Texture3D) { |
| 403 | return RecycleStrategy::Flush; | 403 | return RecycleStrategy::Flush; |
| 404 | } | 404 | } |
| 405 | for (auto s : overlaps) { | 405 | for (const auto& s : overlaps) { |
| 406 | const auto& s_params = s->GetSurfaceParams(); | 406 | const auto& s_params = s->GetSurfaceParams(); |
| 407 | if (s_params.block_depth > 1 || s_params.target == SurfaceTarget::Texture3D) { | 407 | if (s_params.block_depth > 1 || s_params.target == SurfaceTarget::Texture3D) { |
| 408 | return RecycleStrategy::Flush; | 408 | return RecycleStrategy::Flush; |
| @@ -575,7 +575,7 @@ private: | |||
| 575 | } else if (Settings::values.use_accurate_gpu_emulation && passed_tests != overlaps.size()) { | 575 | } else if (Settings::values.use_accurate_gpu_emulation && passed_tests != overlaps.size()) { |
| 576 | return {}; | 576 | return {}; |
| 577 | } | 577 | } |
| 578 | for (auto surface : overlaps) { | 578 | for (const auto& surface : overlaps) { |
| 579 | Unregister(surface); | 579 | Unregister(surface); |
| 580 | } | 580 | } |
| 581 | new_surface->MarkAsModified(modified, Tick()); | 581 | new_surface->MarkAsModified(modified, Tick()); |