VulkanDevice: Add barrier inbetween self image copies

This commit is contained in:
Stenzek committed 2023-12-01 19:08:46 +10:00
1 parent d43efebcc5
commit 3469b83a58
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -473,7 +473,8 @@ void VulkanTexture::TransitionToLayout(Layout layout)
void VulkanTexture::TransitionToLayout(VkCommandBuffer command_buffer, Layout new_layout)
{
if (m_layout == new_layout)
// Need a barrier inbetween multiple self transfers.
if (m_layout == new_layout && new_layout != Layout::TransferSelf)
return;
TransitionSubresourcesToLayout(command_buffer, 0, m_layers, 0, m_levels, m_layout, new_layout);