Improve wsi.incremental_present.* for low memory
authorAaron Bartholomew <abartholomew@nvidia.com>
Mon, 20 Aug 2018 19:28:42 +0000 (12:28 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 28 Aug 2018 09:15:42 +0000 (05:15 -0400)
commitc7a7e117b786b775f85d4bffa29deb418102d758
tree08e40c805492f957ab7b83f24b1ac22f2967b9bc
parent2f89079f5d16d1270a10c491283c4775405cf4bc
Improve wsi.incremental_present.* for low memory

This patch modifies the VK.wsi.incremental_present.* tests to alleviate
issues with memory use on memory constrained platforms

The issue is that the scale_down group in particular creates very large
swapchains & that the presentation engine may keep one or moreof the
swapchain images allocated until it is able to release them. Which means
that since this test does the following:

create swapchain, render some frames, destroy the swapchain, repeat

the high watermark for memory consumed by swapchain images will be higher
than the amount consumed by the single largest swapchain created.

This patch addresses these issues in two ways:
1) Reducing the size of the swapchain images allocated for scale down
tests to use the next power of two of the window size, instead of the
max extents reported by Vulkan

Max extents are already tested in other deqp tests &amp; it&apos;s redundant
to do evaluate it again here; this change will make the test more
on functionality

2) Creates/Renders/Destroys a small dummy swapchain between each test
iteration in order to flush the memory held by the presentation
engine

Affects:
dEQP-VK.wsi.*.incremental_present.*

Components: Vulkan

VK-GL-CTS issue: 1179

Change-Id: Ib7e1a5d9110e7dabc0d0ced21b643389c2bf0328
(cherry picked from commit a3ba2368fda1ecf8cc3d5c3136b5674a3414f472)
external/vulkancts/modules/vulkan/wsi/vktWsiIncrementalPresentTests.cpp