Fix vertex binding stride in rasterization.primitive_size.points
authorMaciej Jesionowski <maciej.jesionowski@amd.com>
Tue, 25 Jun 2019 16:31:04 +0000 (18:31 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 3 Jul 2019 07:42:58 +0000 (03:42 -0400)
The graphics pipeline is using two vertex input attributes: position and color.
The vertex binding stride was incorrectly set to only the size of position,
rather than the size of position and color.

Components: Vulkan
VK-GL-CTS issue: 1851

Affects:
dEQP-VK.rasterization.primitive_size.points.*

Change-Id: I9a55386652788672c94547938933b4969407ac86

external/vulkancts/modules/vulkan/rasterization/vktRasterizationTests.cpp

index 0b3e690..cf0ca76 100644 (file)
@@ -1348,9 +1348,9 @@ void PointSizeTestInstance::drawPoint (tcu::PixelBufferAccess& result, PointScen
 
                const VkVertexInputBindingDescription           vertexInputBindingDescription           =
                {
-                       0u,                                                     // deUint32                                     binding;
-                       sizeof(tcu::Vec4),                      // deUint32                                     strideInBytes;
-                       VK_VERTEX_INPUT_RATE_VERTEX     // VkVertexInputStepRate        stepRate;
+                       0u,                                                                     // deUint32                                     binding;
+                       (deUint32)(2 * sizeof(tcu::Vec4)),      // deUint32                                     strideInBytes;
+                       VK_VERTEX_INPUT_RATE_VERTEX                     // VkVertexInputStepRate        stepRate;
                };
 
                const VkVertexInputAttributeDescription         vertexInputAttributeDescriptions[2]     =