Lines Matching refs:format
203 p->format = vk_format_from_android(desc.format, desc.usage);
205 const struct anv_format *anv_format = anv_get_format(p->format);
217 anv_get_image_format_features2(&device->info, p->format, anv_format,
220 /* "Images can be created with an external format even if the Android hardware
221 * buffer has a format which has an equivalent Vulkan format to enable
223 * of format. However, all images created with an external format are subject
225 * the Android hardware buffer’s format has a Vulkan equivalent."
267 /* Fill format properties of an Android hardware buffer. */
274 format_prop->format = format_prop2.format;
429 uint32_t format = 0;
438 format = android_format_from_vk(image->vk.format);
443 format = AHARDWAREBUFFER_FORMAT_BLOB;
448 format = AHARDWAREBUFFER_FORMAT_BLOB;
458 .format = format,
533 enum isl_format format = anv_get_isl_format(&device->info,
534 base_info->format,
537 assert(format != ISL_FORMAT_UNSUPPORTED);
635 format_supported_with_usage(VkDevice device_h, VkFormat format,
644 .format = format,
654 /* Check that requested format and usage are supported. */
667 setup_gralloc0_usage(struct anv_device *device, VkFormat format,
709 switch (format) {
719 mesa_logw("%s: unsupported format=%d", __func__, format);
731 VkFormat format,
742 mesa_logd("%s: format=%d, usage=0x%x", __func__, format, imageUsage);
744 result = format_supported_with_usage(device_h, format, imageUsage);
749 result = setup_gralloc0_usage(device, format, imageUsage, &grallocUsage);
777 VkFormat format,
785 mesa_logd("%s: format=%d, usage=0x%x", __func__, format, imageUsage);
787 result = format_supported_with_usage(device_h, format, imageUsage);
791 return setup_gralloc0_usage(device, format, imageUsage, grallocUsage);