Make create_buffer test use platform limits
authorAlex Walters <alex.walters@imgtec.com>
Thu, 17 Aug 2017 14:53:01 +0000 (15:53 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 31 Aug 2017 16:17:05 +0000 (12:17 -0400)
commitb7e64d87c14fcbcf8ffad74fe560b1efe6d972f8
tree08977dffcc23d80842effba077533dbfb7bf2b47
parentb00c7d436b39604d2902c95f40a16a280d29b825
Make create_buffer test use platform limits

The create_buffer tests use a maximum buffer size of half the heap size
as reported by vkGetPhysicalDeviceMemoryProperties. On systems where
device memory comes out of system memory, due to the memory in use in
the system the selected buffer size may be too large.

The heap size is checked against the platform limits, the min is taken
and that is used as the basis for calculating the buffer size to test

Affects:

dEQP-VK.api.buffer.createBuffer_*

Components: Vulkan

VK-GL-CTS issue: 362

Change-Id: I7a644e8e48b961dad0d19675e3d54add4b11d99c
external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp