Flush pipeline after texture uploads

This commit is contained in:
Billy Laws 2023-02-09 22:35:03 +00:00
parent ffdd50bdf3
commit 02786839a5

View File

@ -543,6 +543,14 @@ namespace skyline::gpu::interconnect {
texture->cycle = cycle;
texture->UpdateRenderPassUsage(0, texture::RenderPassUsage::None);
}
// Wait on texture syncs to finish before beginning the cmdbuf
slot->commandBuffer.pipelineBarrier(
vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eAllCommands, {}, vk::MemoryBarrier{
.srcAccessMask = vk::AccessFlagBits::eMemoryRead | vk::AccessFlagBits::eMemoryWrite,
.dstAccessMask = vk::AccessFlagBits::eMemoryRead | vk::AccessFlagBits::eMemoryWrite,
}, {}, {}
);
}
for (const auto &attachedBuffer : ranges::views::concat(attachedBuffers, preserveAttachedBuffers)) {