Lines Matching defs:usage
248 .usage = imageUsage,
255 /* Check that requested format and usage are supported. */
325 .usage = imageUsage,
332 /* Check that requested format and usage are supported. */
457 /* No usage bits set - set at least one GPU usage. */
479 * one of the AHARDWAREBUFFER_USAGE_GPU_* usage flags."
481 if (!(desc.usage & (gpu_usage)))
487 p->format = vk_format_from_android(desc.format, desc.usage);
497 if (desc.usage & AHARDWAREBUFFER_USAGE_GPU_DATA_BUFFER)
506 * to the valid usage requirements associated with external formats, even if
555 * one of the AHARDWAREBUFFER_USAGE_GPU_* usage flags."
557 if (!(desc.usage & (gpu_usage)))
563 p->format = vk_format_from_android(desc.format, desc.usage);
573 if (desc.usage & AHARDWAREBUFFER_USAGE_GPU_DATA_BUFFER)
582 * to the valid usage requirements associated with external formats, even if
774 uint64_t usage = 0;
783 usage = radv_ahb_usage_from_vk_usage(image->vk.create_flags, image->vk.usage);
788 usage = AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN | AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN;
792 usage = AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN | AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN;
801 .usage = usage,
825 radv_android_gralloc_supports_format(VkFormat format, VkImageUsageFlagBits usage)
839 return !(usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT);
845 (void)usage;