Pipeline must be bound before calling vkCmdSetViewport/Scissor etc
authorTom Cooper <tom.cooper@arm.com>
Wed, 22 Nov 2017 15:57:37 +0000 (15:57 +0000)
committerTom Cooper <tom.cooper@arm.com>
Wed, 22 Nov 2017 17:03:33 +0000 (12:03 -0500)
Affects:
dEQP-VK.dynamic_state.*

Components: Vulkan

VK-GL-CTS issue: 861

Change-Id: I0f5312c83096cebebfa4ab01987c2ab9ede7306b

external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateCBTests.cpp

index 4f56b09..278308d 100644 (file)
@@ -92,14 +92,14 @@ public:
                const vk::VkClearColorValue clearColor = { { 1.0f, 1.0f, 1.0f, 1.0f } };
                beginRenderPassWithClearColor(clearColor);
 
+               m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline);
+
                // bind states here
                setDynamicViewportState(WIDTH, HEIGHT);
                setDynamicRasterizationState();
                setDynamicDepthStencilState();
                setDynamicBlendState(0.33f, 0.1f, 0.66f, 0.5f);
 
-               m_vk.cmdBindPipeline(*m_cmdBuffer, vk::VK_PIPELINE_BIND_POINT_GRAPHICS, *m_pipeline);
-
                const vk::VkDeviceSize vertexBufferOffset = 0;
                const vk::VkBuffer vertexBuffer = m_vertexBuffer->object();
                m_vk.cmdBindVertexBuffers(*m_cmdBuffer, 0, 1, &vertexBuffer, &vertexBufferOffset);