Lines Matching refs:vk_device
64 VkDevice vk_device = anv_device_to_handle(device); in dump_image_init() local
70 result = anv_CreateImage(vk_device, in dump_image_init()
86 anv_GetImageMemoryRequirements(vk_device, image->image, &reqs); in dump_image_init()
88 result = anv_AllocateMemory(vk_device, in dump_image_init()
96 result = anv_BindImageMemory(vk_device, image->image, image->memory, 0); in dump_image_init()
103 VkDevice vk_device = anv_device_to_handle(device); in dump_image_finish() local
105 anv_DestroyImage(vk_device, image->image, NULL); in dump_image_finish()
106 anv_FreeMemory(vk_device, image->memory, NULL); in dump_image_finish()
202 VkDevice vk_device = anv_device_to_handle(device); in dump_image_write_to_ppm() local
206 anv_GetImageMemoryRequirements(vk_device, image->image, &reqs); in dump_image_write_to_ppm()
209 result = anv_MapMemory(vk_device, image->memory, 0, reqs.size, 0, (void **)&map); in dump_image_write_to_ppm()
213 anv_GetImageSubresourceLayout(vk_device, image->image, in dump_image_write_to_ppm()
242 anv_UnmapMemory(vk_device, image->memory); in dump_image_write_to_ppm()
251 VkDevice vk_device = anv_device_to_handle(device); in anv_dump_image_to_ppm() local
268 result = anv_CreateCommandPool(vk_device, in anv_dump_image_to_ppm()
277 result = anv_AllocateCommandBuffers(vk_device, in anv_dump_image_to_ppm()
300 result = anv_CreateFence(vk_device, in anv_dump_image_to_ppm()
315 result = anv_WaitForFences(vk_device, 1, &fence, true, UINT64_MAX); in anv_dump_image_to_ppm()
318 anv_DestroyFence(vk_device, fence, NULL); in anv_dump_image_to_ppm()
319 anv_DestroyCommandPool(vk_device, commandPool, NULL); in anv_dump_image_to_ppm()