tests:Fix InvalidCmdBufferBufferDestroyed
authorTobin Ehlis <tobine@google.com>
Fri, 3 Nov 2017 19:41:39 +0000 (13:41 -0600)
committerTobin Ehlis <tobine@google.com>
Mon, 6 Nov 2017 23:29:51 +0000 (16:29 -0700)
Size allocation for InvalidCmdBufferBufferDestroyed based on memory
requirements.

tests/layer_validation_tests.cpp

index 46acde3..34c6161 100644 (file)
@@ -5695,7 +5695,7 @@ TEST_F(VkLayerTest, InvalidCmdBufferBufferDestroyed) {
 
     VkMemoryAllocateInfo alloc_info = {};
     alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO;
-    alloc_info.allocationSize = 256;
+    alloc_info.allocationSize = mem_reqs.size;
     bool pass = false;
     pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
     if (!pass) {