summaryrefslogtreecommitdiffstats
path: root/src/intel/Android.isl.mk
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2018-12-17 14:17:15 +0200
committerTapani Pälli <[email protected]>2019-01-10 08:02:30 +0200
commit864cc419eb0a418827620afd42879698cb149088 (patch)
tree605050e71cb7ff460e88d35f70790169c0892891 /src/intel/Android.isl.mk
parent406f603b347f554f9f796d22cb74dde48d6551d3 (diff)
intel/isl: move tiled_memcpy static libs from i965 to isl
Patch moves intel_tiled_memcpy[_sse41] libraries to isl, renames some functions and types and makes the required build system changes for meson, automake and Android. No functional changes are introduced. v2: code cleanups, move isl_get_memcpy_type to i965 (Jason) v3: move isl_mem_copy_fn to priv header, cleanups (Jason, Dylan) Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/Android.isl.mk')
-rw-r--r--src/intel/Android.isl.mk51
1 files changed, 50 insertions, 1 deletions
diff --git a/src/intel/Android.isl.mk b/src/intel/Android.isl.mk
index 23cff55d251..07a64b8ed1c 100644
--- a/src/intel/Android.isl.mk
+++ b/src/intel/Android.isl.mk
@@ -199,6 +199,47 @@ include $(MESA_COMMON_MK)
include $(BUILD_STATIC_LIBRARY)
# ---------------------------------------
+# Build libmesa_isl_tiled_memcpy
+# ---------------------------------------
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_isl_tiled_memcpy
+
+LOCAL_C_INCLUDES := \
+ $(MESA_TOP)/src/gallium/include \
+ $(MESA_TOP)/src/mapi \
+ $(MESA_TOP)/src/mesa
+
+LOCAL_SRC_FILES := $(ISL_TILED_MEMCPY_FILES)
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+
+# ---------------------------------------
+# Build libmesa_isl_tiled_memcpy_sse41
+# ---------------------------------------
+
+ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := libmesa_isl_tiled_memcpy_sse41
+
+LOCAL_C_INCLUDES := \
+ $(MESA_TOP)/src/gallium/include \
+ $(MESA_TOP)/src/mapi \
+ $(MESA_TOP)/src/mesa
+
+LOCAL_SRC_FILES := $(ISL_TILED_MEMCPY_SSE41_FILES)
+
+LOCAL_CFLAGS += \
+ -DUSE_SSE41 -msse4.1 -mstackrealign
+
+include $(MESA_COMMON_MK)
+include $(BUILD_STATIC_LIBRARY)
+endif
+
+# ---------------------------------------
# Build libmesa_isl
# ---------------------------------------
@@ -227,7 +268,15 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
libmesa_isl_gen9 \
libmesa_isl_gen10 \
libmesa_isl_gen11 \
- libmesa_genxml
+ libmesa_genxml \
+ libmesa_isl_tiled_memcpy
+
+ifeq ($(ARCH_X86_HAVE_SSE4_1),true)
+LOCAL_CFLAGS += \
+ -DUSE_SSE41
+LOCAL_WHOLE_STATIC_LIBRARIES += \
+ libmesa_isl_tiled_memcpy_sse41
+endif
# Autogenerated sources