iris: add libmesa_iris_gen8 library to the build
authorTapani Pälli <tapani.palli@intel.com>
Tue, 26 Feb 2019 08:21:32 +0000 (10:21 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 27 Feb 2019 06:57:41 +0000 (08:57 +0200)
Patch fixes iris build on Android.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/iris/Android.mk

index 371567a6707ac59996fd76575847c8d12091be67..ba59eb566bba569f27e7db6e7f3b073abc957305 100644 (file)
@@ -40,6 +40,26 @@ IRIS_COMMON_INCLUDES := \
        $(MESA_TOP)/src/gallium/include \
        $(MESA_TOP)/src/gallium/auxiliary
 
+#
+# libiris for gen8
+#
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libmesa_iris_gen8
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES)
+LOCAL_CFLAGS := -DGEN_VERSIONx10=80
+
+LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES)
+
+LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS)
+
+LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
 #
 # libiris for gen9
 #
@@ -126,6 +146,7 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
        libmesa_blorp \
        libmesa_intel_common \
        libmesa_intel_compiler \
+       libmesa_iris_gen8 \
        libmesa_iris_gen9 \
        libmesa_iris_gen10 \
        libmesa_iris_gen11