Fix layout transition in Texture::CopyFrom

This commit is contained in:
Billy Laws 2022-09-29 21:23:14 +01:00
parent 0f7c04ffb4
commit 54b85583ae

View File

@ -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,