Mesa (main): android: Allow forcing softpipe

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 19 21:48:18 UTC 2021


Module: Mesa
Branch: main
Commit: d0bc4974fa705ed56e642daea7df6f2626c012ba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0bc4974fa705ed56e642daea7df6f2626c012ba

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Wed Oct  6 12:32:05 2021 -0700

android: Allow forcing softpipe

When dealing with swrast, there's two possibilities: If you have LLVM, you get
llvmpipe, which is pretty fast. If you don't, you get softpipe, which is slow,
but does have a couple nice qualities, like being smaller and not needing
executable memory for JIT.

If you're building a driver that requires LLVM like radeonsi then you need the
LLVM stub for the build to find LLVM. But for swrast, since it can mean either
softpipe/llvmpipe, you don't strictly need LLVM. So this just makes the
Android build files flexible like the Meson build files (where you can specify
-Dllvm=disabled even if LLVM is findable).

Reviewed-by: Roman Stratiienko <r.stratiienko at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13532>

---

 android/Android.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/Android.mk b/android/Android.mk
index 2523bc4fd4a..846907d553f 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -45,8 +45,10 @@ MESON_GEN_PKGCONFIGS := backtrace cutils expat hardware libdrm:$(LIBDRM_VERSION)
 LOCAL_CFLAGS += $(BOARD_MESA3D_CFLAGS)
 
 ifneq ($(filter swr swrast,$(BOARD_MESA3D_GALLIUM_DRIVERS) $(BOARD_MESA3D_VULKAN_DRIVERS)),)
+ifeq ($(BOARD_MESA3D_FORCE_SOFTPIPE),)
 MESON_GEN_LLVM_STUB := true
 endif
+endif
 
 ifneq ($(filter zink,$(BOARD_MESA3D_GALLIUM_DRIVERS)),)
 LOCAL_SHARED_LIBRARIES += libvulkan



More information about the mesa-commit mailing list