diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index e874024f66..ca5082b1f1 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -1472,6 +1472,7 @@ void TextureCache
::TickAsyncUnswizzle() { if (swizzle_chunk_size > 0 && !task.is_incremental && copy_amount < remaining) { copy_amount = (copy_amount / task.bytes_per_slice) * task.bytes_per_slice; if (copy_amount == 0) copy_amount = task.bytes_per_slice; + copy_amount = (std::min)(copy_amount, remaining); } u8* const staging_base = task.staging_buffer.mapped_span.data(); @@ -1583,7 +1584,8 @@ void TextureCache
::TickAsyncUnswizzle() {
// Check if complete
const u32 slices_submitted = static_cast