tests: Fix VkLayerTest.FramebufferIncompatible
authorChris Forbes <chrisforbes@google.com>
Tue, 13 Sep 2016 06:10:34 +0000 (18:10 +1200)
committerChris Forbes <chrisforbes@google.com>
Wed, 14 Sep 2016 21:18:57 +0000 (09:18 +1200)
This was trying to execute a secondary command buffer within a subpass
whose contents were marked as inline.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
tests/layer_validation_tests.cpp

index fb7f235..13d9491 100644 (file)
@@ -13037,7 +13037,12 @@ TEST_F(VkLayerTest, FramebufferIncompatible) {
     vkBeginCommandBuffer(sec_cb, &cbbi);
     vkEndCommandBuffer(sec_cb);
 
-    BeginCommandBuffer();
+    VkCommandBufferBeginInfo cbbi2 = {
+        VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO, nullptr,
+        0, nullptr
+    };
+    vkBeginCommandBuffer(m_commandBuffer->GetBufferHandle(), &cbbi2);
+    vkCmdBeginRenderPass(m_commandBuffer->GetBufferHandle(), &m_renderPassBeginInfo, VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS);
 
     m_errorMonitor->SetDesiredFailureMsg(VK_DEBUG_REPORT_ERROR_BIT_EXT,
                                          " that is not the same as the primaryCB's current active framebuffer ");