tests: Fix test framework to not pass a null vi
Signed-off-by: Chris Forbes <chrisforbes@google.com>
diff --git a/tests/vkrenderframework.cpp b/tests/vkrenderframework.cpp
index 520a6a0..29b834b 100644
--- a/tests/vkrenderframework.cpp
+++ b/tests/vkrenderframework.cpp
@@ -1280,14 +1280,8 @@
m_shaderObjs[i]->GetStageCreateInfo();
}
- if (m_vi_state.vertexAttributeDescriptionCount &&
- m_vi_state.vertexBindingDescriptionCount) {
- m_vi_state.sType =
- VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO;
- info.pVertexInputState = &m_vi_state;
- } else {
- info.pVertexInputState = NULL;
- }
+ m_vi_state.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO;
+ info.pVertexInputState = &m_vi_state;
info.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
info.pNext = NULL;