Skip to content

android: Introduce the Android buffer info abstraction

Both EGL and Vulkan implementations require obtaining buffer metadata, e.g., format, modifier, offsets, strides, etc.

Currently, mesa3d doesn't have a generic solution, and every Vulkan implementation uses its getters. Most of the getters rely on kernel metadata storage that is available for x86-based GPU drivers.

ARM-based Vulkan drivers rely on userspace metadata sharing, making it important to use advanced metadata API. Otherwise, the driver will work with limited functionality (no YUV, lack of support for modifiers, etc.)

Current EGL buffer getter implementation is advanced enough and used as a base for a common Android buffer-getter logic.

Edited by Roman Stratiienko

Merge request reports