summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorMarkus Wick <markus@selfnet.de>2021-05-29 08:55:37 +0200
committerMarkus Wick <markus@selfnet.de>2021-05-29 08:57:44 +0200
commit5a8cd1b118230450aeec8d770db87331bbc60812 (patch)
treec100df6aa459de10b6162ae8d446d26e9623d2ef /src/video_core
parentMerge pull request #6371 from degasus/drop_ExceptionalExit (diff)
downloadyuzu-5a8cd1b118230450aeec8d770db87331bbc60812.tar
yuzu-5a8cd1b118230450aeec8d770db87331bbc60812.tar.gz
yuzu-5a8cd1b118230450aeec8d770db87331bbc60812.tar.bz2
yuzu-5a8cd1b118230450aeec8d770db87331bbc60812.tar.lz
yuzu-5a8cd1b118230450aeec8d770db87331bbc60812.tar.xz
yuzu-5a8cd1b118230450aeec8d770db87331bbc60812.tar.zst
yuzu-5a8cd1b118230450aeec8d770db87331bbc60812.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index de971041f..9e6b87960 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -596,7 +596,7 @@ void BufferCache<P>::PopAsyncFlushes() {
runtime.CopyBuffer(download_staging.buffer, slot_buffers[buffer_id], copies);
}
runtime.Finish();
- for (const auto [copy, buffer_id] : downloads) {
+ for (const auto& [copy, buffer_id] : downloads) {
const Buffer& buffer = slot_buffers[buffer_id];
const VAddr cpu_addr = buffer.CpuAddr() + copy.src_offset;
// Undo the modified offset
@@ -606,7 +606,7 @@ void BufferCache<P>::PopAsyncFlushes() {
}
} else {
const std::span<u8> immediate_buffer = ImmediateBuffer(largest_copy);
- for (const auto [copy, buffer_id] : downloads) {
+ for (const auto& [copy, buffer_id] : downloads) {
Buffer& buffer = slot_buffers[buffer_id];
buffer.ImmediateDownload(copy.src_offset, immediate_buffer.subspan(0, copy.size));
const VAddr cpu_addr = buffer.CpuAddr() + copy.src_offset;