v3d: Only look up the 3rd texture gather offset for non-arrays.
[mesa.git] / Android.common.mk
index 397dc03dee48c7934fb6bb69b36d3f39df6e798e..36d97c52dd1d77d21c5f0a4199f955bd82ba1585 100644 (file)
@@ -32,12 +32,12 @@ LOCAL_C_INCLUDES += \
 MESA_VERSION := $(shell cat $(MESA_TOP)/VERSION)
 LOCAL_CFLAGS += \
        -Wno-error \
+       -Werror=incompatible-pointer-types \
        -Wno-unused-parameter \
        -Wno-pointer-arith \
        -Wno-missing-field-initializers \
        -Wno-initializer-overrides \
        -Wno-mismatched-tags \
-       -DVERSION=\"$(MESA_VERSION)\" \
        -DPACKAGE_VERSION=\"$(MESA_VERSION)\" \
        -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"
 
@@ -76,6 +76,8 @@ LOCAL_CFLAGS += \
        -DMAJOR_IN_SYSMACROS \
        -DVK_USE_PLATFORM_ANDROID_KHR \
        -fvisibility=hidden \
+       -fno-math-errno \
+       -fno-trapping-math \
        -Wno-sign-compare
 
 LOCAL_CPPFLAGS += \
@@ -89,6 +91,13 @@ LOCAL_CPPFLAGS += \
 LOCAL_CONLYFLAGS += \
        -std=c99
 
+# c11 timespec_get is part of bionic as well
+# https://android-review.googlesource.com/c/718518
+# This means releases from P and earlier won't need this
+ifeq ($(filter 5 6 7 8 9, $(MESA_ANDROID_MAJOR_VERSION)),)
+LOCAL_CFLAGS += -DHAVE_TIMESPEC_GET
+endif
+
 ifeq ($(strip $(MESA_ENABLE_ASM)),true)
 ifeq ($(TARGET_ARCH),x86)
 LOCAL_CFLAGS += \