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 & it'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)