Lines Matching defs:mai
262 VkMemoryAllocateInfo mai;
263 mai.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO;
264 mai.pNext = pNext;
265 mai.allocationSize = size;
266 mai.memoryTypeIndex = screen->heap_map[heap];
267 if (screen->info.mem_props.memoryTypes[mai.memoryTypeIndex].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) {
269 mai.allocationSize = align64(mai.allocationSize, screen->info.props.limits.minMemoryMapAlignment);
272 if (mai.allocationSize > screen->info.mem_props.memoryHeaps[heap_idx].size) {
273 mesa_loge("zink: can't allocate %"PRIu64" bytes from heap that's only %"PRIu64" bytes!\n", mai.allocationSize, screen->info.mem_props.memoryHeaps[heap_idx].size);
286 VkResult ret = VKSCR(AllocateMemory)(screen->dev, &mai, NULL, &bo->mem);
306 bo->base.size = mai.allocationSize;