Fix case when unsuported create flag was used for AHB
authorKacper Kleczewski <kacper.kleczewski@mobica.com>
Tue, 23 Oct 2018 12:50:51 +0000 (13:50 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 6 Nov 2018 15:24:49 +0000 (10:24 -0500)
commit4a8ebfc9f0485cab2d964731b3c1573f43926994
treec4e94577368b8e027f0f573dbb387a216a48ee4c
parent04f8b97fdd04024c7ef6f6e042d992a91df4dd29
Fix case when unsuported create flag was used for AHB

Additional validation step is added to ValidateAHardwareBuffer function
which return false if API level is lower than 28 and
VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT create flag is requested.

Components: Vulkan

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

VK-GL-CTS Issue: 1439

Change-Id: Iadaa5c1d584bbf3d3335952c501799aff3c5b2d6
external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp
external/vulkancts/modules/vulkan/vktExternalMemoryUtil.cpp
external/vulkancts/modules/vulkan/vktExternalMemoryUtil.hpp