vktWsiSwapchainTests: remove incorrect barrier (COLOR_ATTACHMENT_OPT -> PRESENT_SRC...
authorscygan <slawomir.cygan@intel.com>
Mon, 16 May 2016 17:41:37 +0000 (19:41 +0200)
committerscygan <slawomir.cygan@intel.com>
Mon, 16 May 2016 17:41:37 +0000 (19:41 +0200)
external/vulkancts/modules/vulkan/wsi/vktWsiSwapchainTests.cpp

index 7251c71..6b7bd79 100644 (file)
@@ -1311,36 +1311,6 @@ void TriangleRenderer::recordFrame (VkCommandBuffer      cmdBuffer,
        m_vkd.cmdDraw(cmdBuffer, 3u, 1u, 0u, 0u);
        m_vkd.cmdEndRenderPass(cmdBuffer);
 
-       {
-               const VkImageMemoryBarrier      toPresentationBarrier   =
-               {
-                       VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
-                       DE_NULL,
-                       (VK_ACCESS_COLOR_ATTACHMENT_READ_BIT|
-                        VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT),
-                       VK_ACCESS_MEMORY_READ_BIT,
-                       VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL,
-                       VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
-                       VK_QUEUE_FAMILY_IGNORED,
-                       VK_QUEUE_FAMILY_IGNORED,
-                       curImage,
-                       {
-                               VK_IMAGE_ASPECT_COLOR_BIT,
-                               0u,                                     // baseMipLevel
-                               1u,                                     // levelCount
-                               0u,                                     // baseArrayLayer
-                               1u,                                     // layerCount
-                       }
-               };
-               m_vkd.cmdPipelineBarrier(cmdBuffer,
-                                                                VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
-                                                                VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,
-                                                                (VkDependencyFlags)0,
-                                                                0, (const VkMemoryBarrier*)DE_NULL,
-                                                                0, (const VkBufferMemoryBarrier*)DE_NULL,
-                                                                1, &toPresentationBarrier);
-       }
-
        VK_CHECK(m_vkd.endCommandBuffer(cmdBuffer));
 }