mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 21:01:48 +01: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,
|
.subresourceRange = subresource,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (layout != vk::ImageLayout::eTransferSrcOptimal)
|
if (source->layout != vk::ImageLayout::eTransferSrcOptimal)
|
||||||
commandBuffer.pipelineBarrier(vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eTransfer, {}, {}, {}, vk::ImageMemoryBarrier{
|
commandBuffer.pipelineBarrier(vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eTransfer, {}, {}, {}, vk::ImageMemoryBarrier{
|
||||||
.image = sourceBacking,
|
.image = sourceBacking,
|
||||||
.srcAccessMask = vk::AccessFlagBits::eTransferRead,
|
.srcAccessMask = vk::AccessFlagBits::eTransferRead,
|
||||||
|
Loading…
Reference in New Issue
Block a user