Lines Matching refs:usage
195 * one of the AHARDWAREBUFFER_USAGE_GPU_* usage flags."
197 if (!(desc.usage & (gpu_usage)))
203 p->format = vk_format_from_android(desc.format, desc.usage);
209 * of AHARDWAREBUFFER_USAGE_GPU_DATA_BUFFER usage.
213 if (desc.usage & AHARDWAREBUFFER_USAGE_GPU_DATA_BUFFER)
224 * to the valid usage requirements associated with external formats, even if
342 /* Construct ahw usage mask from image usage bits, see
366 /* No usage bits set - set at least one GPU usage. */
430 uint64_t usage = 0;
439 usage = anv_ahw_usage_from_vk_usage(image->vk.create_flags, image->vk.usage);
444 usage = AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN |
449 usage = AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN |
459 .usage = usage,
647 .usage = imageUsage,
654 /* Check that requested format and usage are supported. */
742 mesa_logd("%s: format=%d, usage=0x%x", __func__, format, imageUsage);
753 /* Setup gralloc1 usage flags from gralloc0 flags. */
785 mesa_logd("%s: format=%d, usage=0x%x", __func__, format, imageUsage);