mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-22 22:31:51 +01:00
Flush pipeline after texture uploads
This commit is contained in:
parent
ffdd50bdf3
commit
02786839a5
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user