From 1609fd2a329b792684d4d3f30db350f0c1195bbe Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Tue, 10 May 2022 18:33:31 +0100 Subject: [PATCH] Account for layerCount in SynchronizeGuestWithBuffer staging buffer size --- app/src/main/cpp/skyline/gpu/texture/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/texture/texture.cpp b/app/src/main/cpp/skyline/gpu/texture/texture.cpp index d5bbd192..459bd2da 100644 --- a/app/src/main/cpp/skyline/gpu/texture/texture.cpp +++ b/app/src/main/cpp/skyline/gpu/texture/texture.cpp @@ -519,7 +519,7 @@ namespace skyline::gpu { WaitOnFence(); if (tiling == vk::ImageTiling::eOptimal || !std::holds_alternative(backing)) { - auto size{format->GetSize(dimensions)}; + auto size{format->GetSize(dimensions) * layerCount}; auto stagingBuffer{gpu.memory.AllocateStagingBuffer(size)}; CopyIntoStagingBuffer(commandBuffer, stagingBuffer);