Relax protected heap allocation tests - continuation
authorTomasz Gregorek <t.gregorek@partner.samsung.com>
Fri, 29 Oct 2021 08:01:54 +0000 (03:01 -0500)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 3 Dec 2021 16:50:14 +0000 (11:50 -0500)
commit0942d4a6846fcae7913cfba291cdcd71efaf5209
tree220c59870c766d11f3cf616b43c797d8ede91fc7
parentfaa7e3fbf9cb168da6c9f7515e216f7a23f8c53f
Relax protected heap allocation tests - continuation

Some implementations have limitations on protected heap
allocations, and these limitations cannot be queried
using the Vulkan API. This change allows an out-of-memory
to happen after a certain number of allocations to
compensate that.

Fix protected memory allocation to be done on small
allocation chunks and ignore allocation failures
if there is at least 80 of concurrent allocations
at a time.

VK-GL-CTS issue: 3257

Affects:
dEQP-VK.memory.allocation.random.*

Components: Vulkan
Change-Id: I32ed020195ff468de468bbd8527dec1d7f0db183
external/vulkancts/modules/vulkan/memory/vktMemoryAllocationTests.cpp