Fix Android WSI incremental present image tests
authorMike Byrne <mike.byrne@arm.com>
Mon, 1 Jul 2019 10:53:36 +0000 (11:53 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 12 Jul 2019 07:30:47 +0000 (03:30 -0400)
The pipeline for Android WSI incremental present image tests was not
provided with a valid scissor rect. This caused the tests to perform
incorrectly (and violates Vulkan requirements).

Affects: dEQP-VK.wsi.android.incremental_present.*

VK-GL-CTS Issue: 1867

Change-Id: I257ab8ae59a13e24fb299b6b47e925f3c105aecb
Components: Vulkan, AOSP

external/vulkancts/modules/vulkan/wsi/vktWsiIncrementalPresentTests.cpp

index dfbd98b..e07d204 100644 (file)
@@ -585,7 +585,7 @@ vk::Move<vk::VkPipeline> createPipeline (const vk::DeviceInterface& vkd,
                DE_NULL
        };
        const std::vector<vk::VkViewport>                                       viewports                       (1, vk::makeViewport(tcu::UVec2(width, height)));
-       const std::vector<vk::VkRect2D>                                         noScissors;
+       const std::vector<vk::VkRect2D>                                         scissors                        (1, vk::makeRect2D(tcu::UVec2(width, height)));
 
        return vk::makeGraphicsPipeline(vkd,                                                                            // const DeviceInterface&                        vk
                                                                        device,                                                                         // const VkDevice                                device
@@ -597,7 +597,7 @@ vk::Move<vk::VkPipeline> createPipeline (const vk::DeviceInterface& vkd,
                                                                        fragmentShaderModule,                                           // const VkShaderModule                          fragmentShaderModule
                                                                        renderPass,                                                                     // const VkRenderPass                            renderPass
                                                                        viewports,                                                                      // const std::vector<VkViewport>&                viewports
-                                                                       noScissors,                                                                     // const std::vector<VkRect2D>&                  scissors
+                                                                       scissors,                                                                       // const std::vector<VkRect2D>&                  scissors
                                                                        vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST,        // const VkPrimitiveTopology                     topology
                                                                        0u,                                                                                     // const deUint32                                subpass
                                                                        0u,                                                                                     // const deUint32                                patchControlPoints