in case of USE_IMPROVED_BUFFER,
flag about SYSTEM_MEMORY is changed
for improved performance.
Change-Id: Id0c7c194e76b67a1a0f032d1909550e4b1631be4
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
LOCAL_CFLAGS += -DUSE_DMA_BUF
endif
+ifeq ($(BOARD_USE_IMPROVED_BUFFER), true)
+LOCAL_CFLAGS += -DUSE_IMPROVED_BUFFER
+endif
+
+ifeq ($(BOARD_USE_CSC_HW), true)
+LOCAL_CFLAGS += -DUSE_CSC_HW
+endif
+
LOCAL_STATIC_LIBRARIES := liblog libcutils libExynosVideoApi
LOCAL_C_INCLUDES := \
* modifications since currently not defined what the 'nUsage' is for.
*/
pANBParams->nUsage |= (GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP);
+#if defined(USE_IMPROVED_BUFFER) && !defined(USE_CSC_HW)
+ pANBParams->nUsage |= (GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN);
+#endif
}
break;
* @file Exynos_OSAL_SharedMemory.c
* @brief
* @author SeungBeom Kim (sbcrux.kim@samsung.com)
+ * Jinsung Yang (jsgood.yang@samsung.com)
* Taehwan Kim (t_h.kim@samsung.com)
* @version 2.0.0
* @history
flag = 0;
break;
case SYSTEM_MEMORY:
+#ifdef USE_IMPROVED_BUFFER
+ mask = ION_HEAP_SYSTEM_MASK;
+ flag = ION_FLAG_CACHED | ION_FLAG_CACHED_NEEDS_SYNC | ION_FLAG_PRESERVE_KMAP;
+#else
mask = ION_HEAP_SYSTEM_MASK;
flag = ION_FLAG_CACHED;
+#endif
break;
default:
pBuffer = NULL;