Lines Matching defs:device

182    ANV_FROM_HANDLE(anv_device, device, device_h);
217 anv_get_image_format_features2(&device->info, p->format, anv_format,
322 * "If the device memory was created by importing an Android hardware
382 ANV_FROM_HANDLE(anv_device, device, device_h);
397 VkResult result = anv_device_import_bo(device, dma_buf, 0,
404 * release when the device memory object is freed. If the command fails,
481 anv_image_init_from_gralloc(struct anv_device *device,
495 return vk_errorf(device, VK_ERROR_INVALID_EXTERNAL_HANDLE,
515 result = anv_device_import_bo(device, dma_buf,
521 return vk_errorf(device, result,
526 result = anv_device_get_bo_tiling(device, bo, &tiling);
528 return vk_errorf(device, result,
533 enum isl_format format = anv_get_isl_format(&device->info,
539 result = anv_image_init(device, image, &anv_info);
547 anv_image_get_memory_requirements(device, image, image->vk.aspects,
555 result = vk_errorf(device, VK_ERROR_INVALID_EXTERNAL_HANDLE,
576 anv_device_release_bo(device, bo);
582 anv_image_bind_from_gralloc(struct anv_device *device,
602 VkResult result = anv_device_import_bo(device, dma_buf,
608 return vk_errorf(device, result,
614 result = vk_errorf(device, VK_ERROR_INVALID_EXTERNAL_HANDLE,
618 anv_device_release_bo(device, bo);
638 ANV_FROM_HANDLE(anv_device, device, device_h);
639 VkPhysicalDevice phys_dev_h = anv_physical_device_to_handle(device->physical);
658 return vk_errorf(device, result,
667 setup_gralloc0_usage(struct anv_device *device, VkFormat format,
697 return vk_errorf(device, VK_ERROR_FORMAT_NOT_SUPPORTED,
737 ANV_FROM_HANDLE(anv_device, device, device_h);
749 result = setup_gralloc0_usage(device, format, imageUsage, &grallocUsage);
781 ANV_FROM_HANDLE(anv_device, device, device_h);
791 return setup_gralloc0_usage(device, format, imageUsage, grallocUsage);