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)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Wed, 5 Sep 2018 18:36:31 +0000 (14:36 -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

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

index 9bfde7ef6249f67d914b174657192558fafeddd0..6dbea122fda01027adeb23a14fffe67749313680 100644 (file)
@@ -524,7 +524,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);
        }