Invalid handle in create_display_plane_surface
authorAlex Walters <alex.walters@imgtec.com>
Wed, 13 Dec 2017 15:47:23 +0000 (15:47 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 19 Dec 2017 14:36:09 +0000 (09:36 -0500)
This test attempts to create a display plane surface but incorrectly
fills in the VkDisplaySurfaceCreateInfo with an index into dEQP's array
of display modes instead of the VkDisplayModeKHR handle itself.

The app is required to specify a valid handle.

An invalid handle results in undefined behaviour.

Affects:

dEQP-VK.wsi.display.create_display_plane_surface

Components: Vulkan
VK-GL-CTS issue: 906

Change-Id: I9fbbd40926e26bf82ed11dc1b5e807922cbc4e73

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

index 8ccc5b044844b74800b31ac32429c5800e45710f..2dc48b71bdc2a45ae1dff47e2ee3b581b396f598 100644 (file)
@@ -1280,7 +1280,7 @@ tcu::TestStatus   DisplayCoverageTestInstance::testCreateDisplayPlaneSurfaceKHR(vo
                                                                                                                                                                                VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR,      // VkStructureType                                      sType
                                                                                                                                                                                DE_NULL,                                                                                        // const void*                                          pNext
                                                                                                                                                                                0,                                                                                                      // VkDisplaySurfaceCreateFlagsKHR       flags
-                                                                                                                                                                               modeIndex,                                                                                      // VkDisplayModeKHR                                     displayMode
+                                                                                                                                                                               displayMode,                                                                            // VkDisplayModeKHR                                     displayMode
                                                                                                                                                                                planeIndex,                                                                                     // uint32_t                                                     planeIndex
                                                                                                                                                                                planeProperties[planeIndex].currentStackIndex,          // uint32_t                                                     planeStackIndex
                                                                                                                                                                                VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR,                          // VkSurfaceTransformFlagBitsKHR        transform