Pick correct memoryTypeIndex for AHB
authorShih-Hsin Li <seasonl@nvidia.com>
Wed, 24 Nov 2021 00:32:38 +0000 (16:32 -0800)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 7 Jan 2022 18:00:35 +0000 (13:00 -0500)
commitffd22ce89038a7befec6d6ab916baa924fd4b65c
treef908d4615546fcf71cb99c0259eadd3d5ffaa751
parent1a8cfa6dd21ab69339adf7fc8b989dcf8577f50e
Pick correct memoryTypeIndex for AHB

Pick the right memoryTypeIndex for protected allocations so that
protected memory is allocated when createFlag has protected bit
set. This fixed some bindImageMemory failure caused by binding
non-protected memory in testAndroidHardwareBufferImageFormat.

Affects:
dEQP-VK.api.external.memory.android_hardware_buffer.image_formats.*

Components: Vulkan
Change-Id: Ib50a97d248930b6cc6538d1c7b84e84cddfde40e
external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp