Fix test using protected features without creating a device with them enabled
authorMichal Opalka <michal.opalka@arm.com>
Mon, 30 Nov 2020 07:48:36 +0000 (08:48 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 3 Dec 2020 17:25:01 +0000 (12:25 -0500)
commitfc849a80c35d31f621c0dfee74395791ed5dec75
treec420f510502a26d640c3216611b451c8ca550e65
parent44e79b05e73291bcca13f67b51a6b0af50676796
Fix test using protected features without creating a device with them enabled

The vulkan device was created without protected memory extension,
while later the tests queried physical device if the feature is supported
and based on that created protected image.

Components: Vulkan

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

VK-GL-CTS Issue: 2675

Change-Id: I6d606fb34c89474b529c0f9e0e7a93202e801521
external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp