sm8x50: Add Mesa (zink+turnip) support
Add Mesa support in sm8x50-userdebug device config but do
not enable it yet, until a740* Adreno binaries land in
linux-firmware project. TARGET_USES_SWR still defaults to
"true" i.e. we boot with s/w rendering by default.
SM8550-HDK uses Zink Gallium and Freedreno/Turnip Vulkan
driver to boot with h/w accelerated Mesa graphics.
Turnip Vulkan driver doesn't have Android Hardware Buffer
support implemented yet, so setting HWUI renderer to SkiaGL.
This pending Mesa MR fixes an AOSP breakage upstream
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28579
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I1e2462b8f2dc848bc31a268aa1de405248cf16e5
diff --git a/shared/graphics/mesa/BoardConfig.mk b/shared/graphics/mesa/BoardConfig.mk
index 8836060..e05a372 100644
--- a/shared/graphics/mesa/BoardConfig.mk
+++ b/shared/graphics/mesa/BoardConfig.mk
@@ -17,7 +17,7 @@
BOARD_GPU_DRIVERS := freedreno
ifeq ($(TARGET_BUILD_MESA),true)
BOARD_MESA3D_USES_MESON_BUILD := true
-BOARD_MESA3D_GALLIUM_DRIVERS := freedreno
+BOARD_MESA3D_GALLIUM_DRIVERS := freedreno zink
BOARD_MESA3D_VULKAN_DRIVERS := freedreno
else
BOARD_USE_CUSTOMIZED_MESA := true