Add constant buffer GPU write pipeline barrier

This commit is contained in:
Billy Laws 2022-10-25 20:50:43 +01:00
parent 0b5d9308c4
commit 26aeeaecf5

View File

@ -79,6 +79,10 @@ namespace skyline::gpu::interconnect::maxwell3d {
.dstOffset = view.GetOffset() + offset
};
commandBuffer.copyBuffer(srcGpuAllocation.buffer, view.GetBuffer()->GetBacking(), copyRegion);
commandBuffer.pipelineBarrier(vk::PipelineStageFlagBits::eTransfer, vk::PipelineStageFlagBits::eAllCommands, {}, vk::MemoryBarrier{
.srcAccessMask = vk::AccessFlagBits::eTransferWrite,
.dstAccessMask = vk::AccessFlagBits::eMemoryRead | vk::AccessFlagBits::eMemoryWrite
}, {}, {});
});
});
}