Home
last modified time | relevance | path

Searched refs:ahw_usage (Results 1 – 1 of 1) sorted by relevance

/hardware/google/gfxstream/guest/vulkan_enc/
DAndroidHardwareBuffer.cpp44 uint64_t ahw_usage = 0; in getAndroidHardwareBufferUsageFromVkUsage() local
46 if (vk_usage & VK_IMAGE_USAGE_SAMPLED_BIT) ahw_usage |= AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE; in getAndroidHardwareBufferUsageFromVkUsage()
49 ahw_usage |= AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE; in getAndroidHardwareBufferUsageFromVkUsage()
52 ahw_usage |= AHARDWAREBUFFER_USAGE_GPU_COLOR_OUTPUT; in getAndroidHardwareBufferUsageFromVkUsage()
55 ahw_usage |= AHARDWAREBUFFER_USAGE_GPU_CUBE_MAP; in getAndroidHardwareBufferUsageFromVkUsage()
58 ahw_usage |= AHARDWAREBUFFER_USAGE_PROTECTED_CONTENT; in getAndroidHardwareBufferUsageFromVkUsage()
61 if (ahw_usage == 0) ahw_usage = AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE; in getAndroidHardwareBufferUsageFromVkUsage()
63 return ahw_usage; in getAndroidHardwareBufferUsageFromVkUsage()