diff options
| author | 2021-11-16 18:52:11 -0800 | |
|---|---|---|
| committer | 2021-11-16 18:52:11 -0800 | |
| commit | 71313509f75aeafe425e531824d1faa9e7c0a40b (patch) | |
| tree | cb1df371d288677fcede6a3409eb079e0d278163 /src/video_core/buffer_cache | |
| parent | Merge pull request #7347 from lioncash/catch (diff) | |
| parent | TextureCache: Fix Automatic Anisotropic. (diff) | |
| download | yuzu-71313509f75aeafe425e531824d1faa9e7c0a40b.tar.gz yuzu-71313509f75aeafe425e531824d1faa9e7c0a40b.tar.xz yuzu-71313509f75aeafe425e531824d1faa9e7c0a40b.zip | |
Merge pull request #7219 from FernandoS27/aristotles-right-testicle
Project A.R.T. Advanced Rendering Techniques
Diffstat (limited to 'src/video_core/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index d350c9b36..43bed63ac 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h | |||
| @@ -853,12 +853,14 @@ void BufferCache<P>::CommitAsyncFlushesHigh() { | |||
| 853 | } | 853 | } |
| 854 | if constexpr (USE_MEMORY_MAPS) { | 854 | if constexpr (USE_MEMORY_MAPS) { |
| 855 | auto download_staging = runtime.DownloadStagingBuffer(total_size_bytes); | 855 | auto download_staging = runtime.DownloadStagingBuffer(total_size_bytes); |
| 856 | runtime.PreCopyBarrier(); | ||
| 856 | for (auto& [copy, buffer_id] : downloads) { | 857 | for (auto& [copy, buffer_id] : downloads) { |
| 857 | // Have in mind the staging buffer offset for the copy | 858 | // Have in mind the staging buffer offset for the copy |
| 858 | copy.dst_offset += download_staging.offset; | 859 | copy.dst_offset += download_staging.offset; |
| 859 | const std::array copies{copy}; | 860 | const std::array copies{copy}; |
| 860 | runtime.CopyBuffer(download_staging.buffer, slot_buffers[buffer_id], copies); | 861 | runtime.CopyBuffer(download_staging.buffer, slot_buffers[buffer_id], copies, false); |
| 861 | } | 862 | } |
| 863 | runtime.PostCopyBarrier(); | ||
| 862 | runtime.Finish(); | 864 | runtime.Finish(); |
| 863 | for (const auto& [copy, buffer_id] : downloads) { | 865 | for (const auto& [copy, buffer_id] : downloads) { |
| 864 | const Buffer& buffer = slot_buffers[buffer_id]; | 866 | const Buffer& buffer = slot_buffers[buffer_id]; |