Lines Matching refs:mem_alloc
2227 VkMemoryAllocateInfo mem_alloc = {}; in TEST_F() local
2228 mem_alloc.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
2229 mem_alloc.pNext = NULL; in TEST_F()
2230 mem_alloc.allocationSize = 512; // one allocation for both buffers in TEST_F()
2231 mem_alloc.memoryTypeIndex = 0; in TEST_F()
2235 bool pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc, 0); in TEST_F()
2242 if (mem_reqs.size > mem_alloc.allocationSize) { in TEST_F()
2243 mem_alloc.allocationSize = mem_reqs.size; in TEST_F()
2247 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem); in TEST_F()
2691 VkMemoryAllocateInfo mem_alloc = {}; in TEST_F() local
2692 mem_alloc.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
2693 mem_alloc.pNext = NULL; in TEST_F()
2694 mem_alloc.allocationSize = 0; in TEST_F()
2695 mem_alloc.memoryTypeIndex = 0; in TEST_F()
2696 mem_alloc.allocationSize = mem_reqs.size; in TEST_F()
2698 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc, VK_MEMORY_PROPERTY_HOS… in TEST_F()