Fix use a device with protected memory enabled
authorMohd Faisal <mohd.faisal@arm.com>
Mon, 22 Nov 2021 14:58:37 +0000 (14:58 +0000)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 3 Dec 2021 19:35:59 +0000 (19:35 +0000)
commit6b7d9cdb703558649929dd366525c3beaddcb2e0
tree9a63dc6d0c097b32021038c892636d3bd9fd7d87
parentd8f60ffe479e3a6f1a65e23b21ac80ecdc89bbfb
Fix use a device with protected memory enabled

Test is trying to allocate memory from protected memory heap using
default device which doesn't have protected memory enabled. Change
checks if the protected memory supported, if it is create a custom
device with protected memory enabled.

Affects:

dEQP-VK.memory.mapping.*.full.variable.implicit_unmap

Components: Vulkan

VK-GL-CTS issue: 3292

Change-Id: I74897e3dd7f1cada0044036ba27ad8764754ed23
external/vulkancts/modules/vulkan/memory/vktMemoryMappingTests.cpp