mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 16:55:28 +03:00
Account for layerCount in SynchronizeGuestWithBuffer staging buffer size
This commit is contained in:
parent
5b97b87503
commit
1609fd2a32
@ -519,7 +519,7 @@ namespace skyline::gpu {
|
|||||||
WaitOnFence();
|
WaitOnFence();
|
||||||
|
|
||||||
if (tiling == vk::ImageTiling::eOptimal || !std::holds_alternative<memory::Image>(backing)) {
|
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)};
|
auto stagingBuffer{gpu.memory.AllocateStagingBuffer(size)};
|
||||||
|
|
||||||
CopyIntoStagingBuffer(commandBuffer, stagingBuffer);
|
CopyIntoStagingBuffer(commandBuffer, stagingBuffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user