Lines Matching full:alloc
113 const VkAllocationCallbacks *alloc) in vn_image_deferred_info_init() argument
118 info = vk_zalloc(alloc, sizeof(*info), VN_DEFAULT_ALIGN, in vn_image_deferred_info_init()
145 alloc, size, VN_DEFAULT_ALIGN, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); in vn_image_deferred_info_init()
147 vk_free(alloc, info); in vn_image_deferred_info_init()
184 const VkAllocationCallbacks *alloc) in vn_image_deferred_info_fini() argument
190 vk_free(alloc, (void *)img->deferred_info->list.pViewFormats); in vn_image_deferred_info_fini()
192 vk_free(alloc, img->deferred_info); in vn_image_deferred_info_fini()
220 const VkAllocationCallbacks *alloc, in vn_image_create() argument
226 img = vk_zalloc(alloc, sizeof(*img), VN_DEFAULT_ALIGN, in vn_image_create()
236 vk_free(alloc, img); in vn_image_create()
258 const VkAllocationCallbacks *alloc, in vn_image_create_deferred() argument
264 img = vk_zalloc(alloc, sizeof(*img), VN_DEFAULT_ALIGN, in vn_image_create_deferred()
271 result = vn_image_deferred_info_init(img, create_info, alloc); in vn_image_create_deferred()
274 vk_free(alloc, img); in vn_image_create_deferred()
293 const VkAllocationCallbacks *alloc = in vn_CreateImage() local
294 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_CreateImage()
321 result = vn_wsi_create_image(dev, pCreateInfo, wsi_info, alloc, &img); in vn_CreateImage()
324 vn_android_image_from_anb(dev, pCreateInfo, anb_info, alloc, &img); in vn_CreateImage()
326 result = vn_android_image_from_ahb(dev, pCreateInfo, alloc, &img); in vn_CreateImage()
329 dev, pCreateInfo, swapchain_info, alloc, &img); in vn_CreateImage()
331 result = vn_image_create(dev, pCreateInfo, alloc, &img); in vn_CreateImage()
349 const VkAllocationCallbacks *alloc = in vn_DestroyImage() local
350 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_DestroyImage()
364 vn_image_deferred_info_fini(img, alloc); in vn_DestroyImage()
367 vk_free(alloc, img); in vn_DestroyImage()
447 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; in vn_BindImageMemory2() local
487 local_infos = vk_alloc(alloc, size, VN_DEFAULT_ALIGN, in vn_BindImageMemory2()
509 vk_free(alloc, local_infos); in vn_BindImageMemory2()
582 const VkAllocationCallbacks *alloc = in vn_CreateImageView() local
583 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_CreateImageView()
597 vk_zalloc(alloc, sizeof(*view), VN_DEFAULT_ALIGN, in vn_CreateImageView()
621 const VkAllocationCallbacks *alloc = in vn_DestroyImageView() local
622 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_DestroyImageView()
630 vk_free(alloc, view); in vn_DestroyImageView()
642 const VkAllocationCallbacks *alloc = in vn_CreateSampler() local
643 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_CreateSampler()
646 vk_zalloc(alloc, sizeof(*sampler), VN_DEFAULT_ALIGN, in vn_CreateSampler()
669 const VkAllocationCallbacks *alloc = in vn_DestroySampler() local
670 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_DestroySampler()
678 vk_free(alloc, sampler); in vn_DestroySampler()
691 const VkAllocationCallbacks *alloc = in vn_CreateSamplerYcbcrConversion() local
692 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_CreateSamplerYcbcrConversion()
713 vk_zalloc(alloc, sizeof(*conv), VN_DEFAULT_ALIGN, in vn_CreateSamplerYcbcrConversion()
739 const VkAllocationCallbacks *alloc = in vn_DestroySamplerYcbcrConversion() local
740 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_DestroySamplerYcbcrConversion()
749 vk_free(alloc, conv); in vn_DestroySamplerYcbcrConversion()