Account for layerCount in SynchronizeGuestWithBuffer staging buffer size

This commit is contained in:
Billy Laws 2022-05-10 18:33:31 +01:00
parent 5b97b87503
commit 1609fd2a32

View File

@ -519,7 +519,7 @@ namespace skyline::gpu {
WaitOnFence();
if (tiling == vk::ImageTiling::eOptimal || !std::holds_alternative<memory::Image>(backing)) {
auto size{format->GetSize(dimensions)};
auto size{format->GetSize(dimensions) * layerCount};
auto stagingBuffer{gpu.memory.AllocateStagingBuffer(size)};
CopyIntoStagingBuffer(commandBuffer, stagingBuffer);