Fix fetching geometry in dEQP-VK.renderpass test
authorSlawomir Cygan <slawomir.cygan@intel.com>
Thu, 27 Oct 2016 18:11:15 +0000 (20:11 +0200)
committerPyry Haulos <phaulos@google.com>
Tue, 8 Nov 2016 18:59:31 +0000 (13:59 -0500)
The renderpass test uses 48 byte vertex buffer for 6x 2-element float
values. At the same time pipeline tries to fetch 4-element atributes,
so the last vertex from buffer is outside of bounds (and may be zeroed).

Affected: All dEQP-VK.renderpass* that have the render geoemtry visible
in tested attachments.

Change-Id: If58e18c4df0ea053aa0a766b2bab381a0648326f

external/vulkancts/modules/vulkan/vktRenderPassTests.cpp

index 4b3720d..a53701c 100644 (file)
@@ -1668,7 +1668,7 @@ Move<VkPipeline> createSubpassPipeline (const DeviceInterface&            vk,
        {
                0u,                                                                                                                     // location
                0u,                                                                                                                     // binding
-               VK_FORMAT_R32G32B32A32_SFLOAT,                                                          // format
+               VK_FORMAT_R32G32_SFLOAT,                                                                        // format
                0u,                                                                                                                     // offsetInBytes
        };
        const VkPipelineVertexInputStateCreateInfo vertexInputState =