Lines Matching refs:format

220 radv_GetSwapchainGrallocUsageANDROID(VkDevice device_h, VkFormat format,
245 .format = format,
255 /* Check that requested format and usage are supported. */
287 if (format == VK_FORMAT_B8G8R8A8_UNORM || format == VK_FORMAT_B5G6R5_UNORM_PACK16) {
299 radv_GetSwapchainGrallocUsage2ANDROID(VkDevice device_h, VkFormat format,
322 .format = format,
332 /* Check that requested format and usage are supported. */
365 if (format == VK_FORMAT_B8G8R8A8_UNORM || format == VK_FORMAT_B5G6R5_UNORM_PACK16) {
487 p->format = vk_format_from_android(desc.format, desc.usage);
488 p->externalFormat = (uint64_t)(uintptr_t)p->format;
495 p->format, &format_properties);
502 /* "Images can be created with an external format even if the Android hardware
503 * buffer has a format which has an equivalent Vulkan format to enable
505 * of format. However, all images created with an external format are subject
507 * the Android hardware buffer’s format has a Vulkan equivalent."
563 p->format = vk_format_from_android(desc.format, desc.usage);
564 p->externalFormat = (uint64_t)(uintptr_t)p->format;
571 p->format, &format_properties);
578 /* "Images can be created with an external format even if the Android hardware
579 * buffer has a format which has an equivalent Vulkan format to enable
581 * of format. However, all images created with an external format are subject
583 * the Android hardware buffer’s format has a Vulkan equivalent."
626 /* Fill format properties of an Android hardware buffer. */
773 uint32_t format = 0;
782 format = android_format_from_vk(image->vk.format);
787 format = AHARDWAREBUFFER_FORMAT_BLOB;
791 format = AHARDWAREBUFFER_FORMAT_BLOB;
800 .format = format,
825 radv_android_gralloc_supports_format(VkFormat format, VkImageUsageFlagBits usage)
829 format support, but there is no easy gralloc query besides just creating an image.
833 switch (format) {
844 (void)format;