Android15 support gralloc IMapper5
In Android15 libui.so the vendor partition can access. so use GraphicBufferMapper load mapper4 or mapper5. still using U_GRALLOC_TYPE_GRALLOC4 because GraphicBufferMapper load mapper5 fail will rollback loading mapper4 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11091 Signed-off-by: cheyang <cheyang@bytedance.com> Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31766>
This commit is contained in:
@@ -102,7 +102,10 @@ LOCAL_SHARED_LIBRARIES += \
|
||||
libgralloctypes \
|
||||
libhidlbase \
|
||||
libutils
|
||||
|
||||
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 35; echo $$?), 0)
|
||||
LOCAL_SHARED_LIBRARIES += libui
|
||||
MESON_GEN_PKGCONFIGS += ui
|
||||
endif
|
||||
MESON_GEN_PKGCONFIGS += android.hardware.graphics.mapper:4.0
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user