egl: android: add IMapper@4 metadata API buffer_info getter

Starting from Android-11 Google introduces generalized API
to access buffer information. This API is a part of IMapper@4 HAL.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6045>
This commit is contained in:
Roman Stratiienko
2020-12-15 16:50:19 +02:00
committed by Marge Bot
parent 5d3e64f105
commit f85d3113b2
6 changed files with 274 additions and 14 deletions

View File

@@ -78,6 +78,16 @@ MESON_LLVM_IRBUILDER_PATH := external/llvm-project/llvm/include/llvm/IR/IRBuilde
LOCAL_SHARED_LIBRARIES += libLLVM11
endif
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 30; echo $$?), 0)
LOCAL_SHARED_LIBRARIES += \
android.hardware.graphics.mapper@4.0 \
libgralloctypes \
libhidlbase \
libutils
MESON_GEN_PKGCONFIGS += android.hardware.graphics.mapper:4.0
endif
ifeq ($(TARGET_IS_64_BIT),true)
LOCAL_MULTILIB := 64
else