mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 22:05:30 +03:00
Fix layout transition in Texture::CopyFrom
This commit is contained in:
parent
0f7c04ffb4
commit
54b85583ae
@ -875,7 +875,7 @@ namespace skyline::gpu {
|
||||
.subresourceRange = subresource,
|
||||
});
|
||||
|
||||
if (layout != vk::ImageLayout::eTransferSrcOptimal)
|
||||
if (source->layout != vk::ImageLayout::eTransferSrcOptimal)
|
||||
commandBuffer.pipelineBarrier(vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eTransfer, {}, {}, {}, vk::ImageMemoryBarrier{
|
||||
.image = sourceBacking,
|
||||
.srcAccessMask = vk::AccessFlagBits::eTransferRead,
|
||||
|
Loading…
Reference in New Issue
Block a user