Reduces percentage of heap used in memory tests
authorMatthew Netsch <quic_mnetsch@quicinc.com>
Wed, 5 Sep 2018 18:36:31 +0000 (14:36 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 25 Sep 2018 11:02:36 +0000 (07:02 -0400)
Heaps can be shared and even fragmented on real systems.
The current percentage of 50% is a little high to reasonably
account for these issues.

Components: Vulkan
VK-GL-CTS issue: 1342

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

Change-Id: I9a9c7fff05a663facd142a61a505c38925912ed8
(cherry picked from commit 1dab6c690815c1640b7726e05211ec3ab244f935)

external/vulkancts/modules/vulkan/memory/vktMemoryAllocationTests.cpp

index 8943282..794bcfd 100644 (file)
@@ -485,7 +485,7 @@ RandomAllocFreeTestInstance::RandomAllocFreeTestInstance (Context& context, Test
        {
                m_heaps[heapNdx].heap                   = m_memoryProperties.memoryHeaps[heapNdx];
                m_heaps[heapNdx].memoryUsage    = 0;
-               m_heaps[heapNdx].maxMemoryUsage = m_heaps[heapNdx].heap.size / 2; /* Use at maximum 50% of heap */
+               m_heaps[heapNdx].maxMemoryUsage = m_heaps[heapNdx].heap.size / 8; /* Use at maximum 12.5% of heap */
 
                m_heaps[heapNdx].objects.reserve(100);
        }