tests: Don't supply empty DynamicStateCreateInfo
authorChris Forbes <chrisforbes@google.com>
Mon, 3 Oct 2016 01:26:32 +0000 (14:26 +1300)
committerChris Forbes <chrisforbes@google.com>
Mon, 3 Oct 2016 19:37:26 +0000 (08:37 +1300)
Either the ptr must be nullptr, or there must be >= 1 dynamic state
specified. The empty struct is not allowed.

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

index 3641d81..546474c 100644 (file)
@@ -13922,9 +13922,6 @@ TEST_F(VkLayerTest, ColorBlendLogicOpTests) {
     vp_state_ci.scissorCount = 1;
     VkRect2D scissors = {}; // Dummy scissors to point to
     vp_state_ci.pScissors = &scissors;
-    // No dynamic state
-    VkPipelineDynamicStateCreateInfo dyn_state_ci = {};
-    dyn_state_ci.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;
 
     VkPipelineShaderStageCreateInfo shaderStages[2];
     memset(&shaderStages, 0, 2 * sizeof(VkPipelineShaderStageCreateInfo));
@@ -13970,7 +13967,6 @@ TEST_F(VkLayerTest, ColorBlendLogicOpTests) {
     gp_ci.pRasterizationState = &rs_ci;
     gp_ci.pColorBlendState = &cb_ci;
     gp_ci.pMultisampleState = &ms_ci;
-    gp_ci.pDynamicState = &dyn_state_ci;
     gp_ci.flags = VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT;
     gp_ci.layout = pipeline_layout;
     gp_ci.renderPass = renderPass();