From: Alex Walters Date: Wed, 13 Dec 2017 15:47:23 +0000 (+0000) Subject: Invalid handle in create_display_plane_surface X-Git-Tag: upstream/1.3.5~2565^2~6^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e6306a1f1abba17d9b3f4e36913576fa33ac13d;p=platform%2Fupstream%2FVK-GL-CTS.git Invalid handle in create_display_plane_surface 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 --- diff --git a/external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp b/external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp index 8ccc5b0..2dc48b7 100644 --- a/external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp +++ b/external/vulkancts/modules/vulkan/wsi/vktWsiDisplayTests.cpp @@ -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