From: Tom Cooper Date: Wed, 22 Nov 2017 15:57:37 +0000 (+0000) Subject: Pipeline must be bound before calling vkCmdSetViewport/Scissor etc X-Git-Tag: upstream/1.3.5~2565^2~6^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f156345ea872a2913b09b076373bea715f89e3c9;p=platform%2Fupstream%2FVK-GL-CTS.git Pipeline must be bound before calling vkCmdSetViewport/Scissor etc Affects: dEQP-VK.dynamic_state.* Components: Vulkan VK-GL-CTS issue: 861 Change-Id: I0f5312c83096cebebfa4ab01987c2ab9ede7306b --- diff --git a/external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateCBTests.cpp b/external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateCBTests.cpp index 4f56b09..278308d 100644 --- a/external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateCBTests.cpp +++ b/external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateCBTests.cpp @@ -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);