i965/cnl: Wire up android Mesa build files for gen10
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 11 May 2017 18:57:11 +0000 (11:57 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 9 Jun 2017 23:02:58 +0000 (16:02 -0700)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/Android.genxml.mk
src/intel/Android.isl.mk
src/intel/Android.vulkan.mk
src/mesa/drivers/dri/i965/Android.mk

index 4b0746c245bd77e7d1d93ed9b46790f7ee147280..e4d8dd8b94555fed075aaaed40a82aa6b206dc57 100644 (file)
@@ -96,6 +96,11 @@ $(intermediates)/genxml/gen9_pack.h: PRIVATE_XML := $(LOCAL_PATH)/genxml/gen9.xm
 $(intermediates)/genxml/gen9_pack.h: $(LOCAL_PATH)/genxml/gen9.xml $(LOCAL_PATH)/genxml/gen_pack_header.py
        $(call header-gen)
 
+$(intermediates)/genxml/gen10_pack.h: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(LOCAL_PATH)/genxml/gen_pack_header.py
+$(intermediates)/genxml/gen10_pack.h: PRIVATE_XML := $(LOCAL_PATH)/genxml/gen10.xml
+$(intermediates)/genxml/gen10_pack.h: $(LOCAL_PATH)/genxml/gen10.xml $(LOCAL_PATH)/genxml/gen_pack_header.py
+       $(call header-gen)
+
 $(intermediates)/genxml/genX_xml.h: $(addprefix $(MESA_TOP)/src/intel/,$(GENXML_XML_FILES)) $(MESA_TOP)/src/intel/genxml/gen_zipped_file.py
        @mkdir -p $(dir $@)
        @echo "Gen Header: $(PRIVATE_MODULE) <= $(notdir $(@))"
index 67e6d2de1933abc731ec31aa8155752e7ba69f86..516ac3a21020e39a2033867d9a0962e7ae64162a 100644 (file)
@@ -160,6 +160,25 @@ LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
 
+# ---------------------------------------
+# Build libmesa_isl_gen10
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_isl_gen10
+
+LOCAL_SRC_FILES := $(ISL_GEN10_FILES)
+
+LOCAL_CFLAGS := -DGEN_VERSIONx10=100
+
+LOCAL_C_INCLUDES := $(LIBISL_GENX_COMMON_INCLUDES)
+
+LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
 # ---------------------------------------
 # Build libmesa_isl
 # ---------------------------------------
@@ -187,6 +206,7 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
        libmesa_isl_gen75 \
        libmesa_isl_gen8 \
        libmesa_isl_gen9 \
+       libmesa_isl_gen10 \
        libmesa_genxml
 
 # Autogenerated sources
index e31c4391df02aa5fb1638f5a1d43ead4c9ba7b2a..095a75bbd477be97d50ce31426cb27b4473a5769 100644 (file)
@@ -158,6 +158,26 @@ LOCAL_SHARED_LIBRARIES := libdrm
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
 
+#
+# libanv for gen10
+#
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libmesa_anv_gen10
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+LOCAL_SRC_FILES := $(VULKAN_GEN10_FILES)
+LOCAL_CFLAGS := -DGEN_VERSIONx10=100
+
+LOCAL_C_INCLUDES := $(ANV_INCLUDES)
+
+LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
+
+LOCAL_SHARED_LIBRARIES := libdrm
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
 #
 # libmesa_vulkan_common
 #
@@ -231,6 +251,7 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
        libmesa_anv_gen75 \
        libmesa_anv_gen8 \
        libmesa_anv_gen9 \
+       libmesa_anv_gen10 \
        libmesa_intel_compiler \
        libmesa_anv_entrypoints
 
index 7c4fadaa4610fa3879b60c97ba61f6ec05eea2e1..7ee9ab784c33836205b72996af281694fad7e8af 100644 (file)
@@ -47,7 +47,8 @@ I965_PERGEN_LIBS := \
        libmesa_i965_gen7 \
        libmesa_i965_gen75 \
        libmesa_i965_gen8 \
-       libmesa_i965_gen9
+       libmesa_i965_gen9 \
+       libmesa_i965_gen10
 
 # ---------------------------------------
 # Build libmesa_i965_gen4
@@ -217,6 +218,27 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=90
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
 
+# ---------------------------------------
+# Build libmesa_i965_gen10
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_i965_gen10
+
+LOCAL_C_INCLUDES := $(I965_PERGEN_COMMON_INCLUDES)
+
+LOCAL_SRC_FILES := $(i965_gen10_FILES)
+
+LOCAL_SHARED_LIBRARIES := $(I965_PERGEN_SHARED_LIBRARIES)
+
+LOCAL_STATIC_LIBRARIES := $(I965_PERGEN_STATIC_LIBRARIES)
+
+LOCAL_CFLAGS := -DGEN_VERSIONx10=100
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
 # ---------------------------------------
 # Build i965_dri
 # ---------------------------------------