Fix bugs for vertex attribute count in push constant tests.
authorFei Yang <fei.yang@arm.com>
Wed, 30 Dec 2015 00:52:18 +0000 (08:52 +0800)
committerFei Yang <fei.yang@arm.com>
Wed, 30 Dec 2015 00:52:18 +0000 (08:52 +0800)
Change-Id: Iccacad6b3a787feedbb0b4df7f8689226fa64a7a

external/vulkancts/modules/vulkan/pipeline/vktPipelinePushConstantTests.cpp

index aa0f710..625c835 100644 (file)
@@ -746,6 +746,12 @@ PushConstantGraphicsTestInstance::PushConstantGraphicsTestInstance (Context&
                                0u,                                                                     // deUint32     binding;
                                VK_FORMAT_R32G32B32A32_SFLOAT,          // VkFormat     format;
                                0u                                                                      // deUint32     offsetInBytes;
+                       },
+                       {
+                               1u,                                                                     // deUint32     location;
+                               0u,                                                                     // deUint32     binding;
+                               VK_FORMAT_R32G32B32A32_SFLOAT,          // VkFormat     format;
+                               DE_OFFSET_OF(Vertex4RGBA, color),       // deUint32     offset;
                        }
                };
 
@@ -756,7 +762,7 @@ PushConstantGraphicsTestInstance::PushConstantGraphicsTestInstance (Context&
                        0u,                                                                                                                             // vkPipelineVertexInputStateCreateFlags        flags;
                        1u,                                                                                                                             // deUint32                                                                     bindingCount;
                        &vertexInputBindingDescription,                                                                 // const VkVertexInputBindingDescription*       pVertexBindingDescriptions;
-                       1u,                                                                                                                             // deUint32                                                                     attributeCount;
+                       2u,                                                                                                                             // deUint32                                                                     attributeCount;
                        vertexInputAttributeDescriptions                                                                // const VkVertexInputAttributeDescription*     pVertexAttributeDescriptions;
                };