From: Christopher N. Hesse Date: Mon, 6 Nov 2017 16:56:52 +0000 (+0100) Subject: fimg5x: Ifdef M2M1SHOT2 acceleration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=233cfa3d5ad38f7448a9c1c3658aeeafdce0d2ac;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung_slsi_exynos.git fimg5x: Ifdef M2M1SHOT2 acceleration Older SoCs like 7880 only have M2M1SHOT v1. Change-Id: I5ba2f70862f62e2d21edcac6cfee7b4034bf47da --- diff --git a/BoardConfigCFlags.mk b/BoardConfigCFlags.mk index bb489b3..c7b18da 100644 --- a/BoardConfigCFlags.mk +++ b/BoardConfigCFlags.mk @@ -1,6 +1,6 @@ ifeq ($(BOARD_USES_FIMGAPI_V5X), true) LOCAL_CFLAGS += -DFIMGAPI_V5X -ifeq ($(filter 3.18, $(TARGET_LINUX_KERNEL_VERSION)), 3.18) +ifeq ($(BOARD_USES_FIMG2D_M2M1SHOT2), true) LOCAL_CFLAGS += -DFIMG2D_USE_M2M1SHOT2 endif endif diff --git a/libfimg5x/FimgExynos5.cpp b/libfimg5x/FimgExynos5.cpp index 2d5a865..5256e23 100644 --- a/libfimg5x/FimgExynos5.cpp +++ b/libfimg5x/FimgExynos5.cpp @@ -21,7 +21,10 @@ #define LOG_TAG "FimgExynos5" #include +#ifdef FIMG2D_USE_M2M1SHOT2 #include +#endif + #include "FimgExynos5.h" extern pthread_mutex_t s_g2d_lock;