Fix crash issue when AHB extension is not supported
authorYuxiang Qian <yuxiang.qian@arm.com>
Fri, 30 Apr 2021 03:22:04 +0000 (03:22 +0000)
committerYuxiang Qian <yuxiang.qian@arm.com>
Sat, 8 May 2021 03:13:54 +0000 (03:13 +0000)
commita6ca07464e112120fee83e5766973a12ee611f00
treecb26f4df3151373608b0b71b68f9f6b88c658dc6
parentf287e6b4396dfd72cb89c602713b6ac1d65c3686
Fix crash issue when AHB extension is not supported

The Ahb test doesn't check if the vulkan extension
VK_ANDROID_external_memory_android_hardware_buffer is supported and
called AHB function directly, then it crashes when the extension is not
supported.
This patch will let the test first check if this extension is supported.

Affects:

dEQP-VK.draw.ahb.*

Components: Vulkan

VK-GL-CTS issue: 2915

Change-Id: Id470caef3e034f10d08cfa3bad6e9ec705104b53
external/vulkancts/modules/vulkan/draw/vktDrawAhbTests.cpp