Color attachments were never properly transitioned out of the undefined
layout into the general layout as specified in the render pass.
Affected tests:
dEQP-VK.conditional_rendering.*
Components: Vulkan
VK-GL-CTS issue: 3781
Change-Id: Iaa2dbe3badaa1ed6ab49c02259c7d0a626e60fde
const tcu::Vec4 drawColor = tcu::RGBA::blue().toVec();
beginCommandBuffer(m_vk, *m_cmdBuffer, 0u);
+ preRenderBarriers();
const bool useSecondaryCmdBuffer = m_conditionalData.conditionInherited || m_conditionalData.conditionInSecondaryCommandBuffer;
beginLegacyRender(*m_cmdBuffer, useSecondaryCmdBuffer ? vk::VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS : vk::VK_SUBPASS_CONTENTS_INLINE);
const vk::VkDevice device = m_context.getDevice();
beginCommandBuffer(m_vk, *m_cmdBuffer, 0u);
+ preRenderBarriers();
const bool useSecondaryCmdBuffer = m_conditionalData.conditionInherited || m_conditionalData.conditionInSecondaryCommandBuffer;
beginLegacyRender(*m_cmdBuffer, useSecondaryCmdBuffer ? vk::VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS : vk::VK_SUBPASS_CONTENTS_INLINE);