venus: query extended resource info from gralloc

Graphics / Mesa 3D Graphics Library / Mesa - Yiwei Zhang [chromium.org] - 4 May 2021 19:52 UTC

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.

e44b4feb333 venus: query extended resource info from gralloc
src/virtio/vulkan/vn_android.c | 158 ++++++++++++++++++++++++++++++++++-------
1 file changed, 133 insertions(+), 25 deletions(-)

Upstream: cgit.freedesktop.org


  • Share