summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2021-10-06 12:32:05 -0700
committerMarge Bot <emma+marge@anholt.net>2021-11-19 21:21:35 +0000
commitd0bc4974fa705ed56e642daea7df6f2626c012ba (patch)
treef38c0104fe7b60999e3955cf6f27ee4374a36d62 /android
parent33e5a4378efee353ddadf103300ab27ed4dc32c7 (diff)
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@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13532>
Diffstat (limited to 'android')
-rw-r--r--android/Android.mk2
1 files changed, 2 insertions, 0 deletions
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