Fixes WSI protected swapchain allocation tests
authorMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 7 Sep 2018 17:44:55 +0000 (13:44 -0400)
committerChris Forbes <chrisforbes@google.com>
Fri, 21 Sep 2018 20:40:12 +0000 (16:40 -0400)
commit5d44149eede5ebc9a43b2e49dddb68b3271bd43a
tree610efa665a689233c80222ffc8aec0875a34d3dc
parent099b44cebc2fa5e6ccc7aacc731350d3efd51691
Fixes WSI protected swapchain allocation tests

Will now throw not supported if swapchain config
cannot fit in the available heap space.

Changes available heap space to fixed 25% of total
reported heap size instead of the current
"total - 2 * imageSize"

Components: Vulkan
VK-GL-CTS issue: 1345

Affects:
dEQP-VK.protected_memory.interaction.wsi.android.swapchain.create.*

Change-Id: I6854ae29b4394d450e47cc78bfb905362a964ec4
(cherry picked from commit f679b545b3b5f06bfb84069a4c712e3988204326)
external/vulkancts/modules/vulkan/protected_memory/vktProtectedMemWsiSwapchainTests.cpp