Skip to content

venus: query extended resource info from gralloc

Yiwei Zhang requested to merge (removed):gralloc-info into master

Creating Android swapchain image from gralloc buffer requires to use VkImageDrmFormatModifierExplicitCreateInfoEXT. To fill the struct info, we need to query extended resource info from gralloc.

With the queried modifier from gralloc, we can ask the driver for the plane count of the given format and modifier pair.

For wsi formats, plane count is expected to be 1 as long as the host is not doing black magic. After we have fully support multi-planar format(while implementing VK_ANDROID_external_memory_android_hardware_buffer), we can remove this restriction.

/cc @olv @gurchetansingh

Edited by Yiwei Zhang

Merge request reports