Lines Matching refs:mai
246 VkMemoryAllocateInfo mai; in bo_create_internal() local
247 mai.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in bo_create_internal()
248 mai.pNext = pNext; in bo_create_internal()
249 mai.allocationSize = size; in bo_create_internal()
250 mai.memoryTypeIndex = screen->heap_map[heap]; in bo_create_internal()
251 …if (screen->info.mem_props.memoryTypes[mai.memoryTypeIndex].propertyFlags & VK_MEMORY_PROPERTY_HOS… in bo_create_internal()
253 … mai.allocationSize = align64(mai.allocationSize, screen->info.props.limits.minMemoryMapAlignment); in bo_create_internal()
256 if (mai.allocationSize > screen->info.mem_props.memoryHeaps[heap_idx].size) { in bo_create_internal()
257 … can't allocate %"PRIu64" bytes from heap that's only %"PRIu64" bytes!\n", mai.allocationSize, scr… in bo_create_internal()
274 VkResult ret = VKSCR(AllocateMemory)(screen->dev, &mai, NULL, &bo->mem); in bo_create_internal()
281 bo->base.size = mai.allocationSize; in bo_create_internal()