Vulkan AHB - fix incorrect structure definition
authorTony Zlatinski <tzlatinski@nvidia.com>
Thu, 16 Aug 2018 13:17:28 +0000 (08:17 -0500)
committerChris Forbes <chrisforbes@google.com>
Thu, 16 Aug 2018 19:02:18 +0000 (19:02 +0000)
commit181b5cd80eb5696484a7ba20fe94b22133367de9
tree28632de6890fd97dd3e58c6c082b59d84d302f53
parentc4a6a1e68a17e7002ab3562e821adfc2cc7b49e5
Vulkan AHB - fix incorrect structure definition

Fix a missing VkComponentMapping field of the VkAndroidHardwareBufferFormatPropertiesANDROID
structure. This is causing incorrect values to be populated to the
structure, as well as, a stack overwrite of other stack-located locals.

Affects:
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.r8g8b8a8_unorm
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.r5g6b5_unorm_pack16
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.r16g16b16a16_sfloat
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.a2b10g10r10_unorm_pack32

Components: Vulkan
VK-GL-CTS issue: 1305
VK-GL-CTS issue: 1316
Bug: b/112705952

Change-Id: I81eb1cc605912bf0adebe67b65d7ccdd31236ec9
(cherry picked from Khronos commit 0116a17ddb4eb4f25624698bc0ba1c68e51a6950)
external/vulkancts/framework/vulkan/vkStrUtilImpl.inl
external/vulkancts/framework/vulkan/vkStructTypes.inl
external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp
external/vulkancts/scripts/src/vulkan.h.in