msm: idef TARGET_USES_ION for targets that dont have ION (msm7x30) but use C2D_COMPOSITION

Change-Id: Idbea7db9a9f3241980cbe31ea2f8e6ad8dabc484
This commit is contained in:
freexperia 2011-11-30 10:53:34 +02:00 committed by Steve Kondik
parent b151a85950
commit a9b1e1661c
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,9 @@ ifeq ($(TARGET_USES_C2D_COMPOSITION),true)
LOCAL_CFLAGS += -DCOPYBIT_Z180=1 -DC2D_SUPPORT_DISPLAY=1
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
ifeq ($(TARGET_USES_ION),true)
LOCAL_CFLAGS += -DUSE_ION
endif
else
ifneq ($(TARGET_BOARD_PLATFORM),msm7x30)
include $(CLEAR_VARS)

View File

@ -213,8 +213,10 @@ static uint32 c2d_get_gpuaddr(int device_fd, struct private_handle_t *handle)
param.memtype = KGSL_USER_MEM_TYPE_PMEM;
else if (handle->flags & private_handle_t::PRIV_FLAGS_USES_ASHMEM)
param.memtype = KGSL_USER_MEM_TYPE_ASHMEM;
#ifdef USE_ION
else if (handle->flags & private_handle_t::PRIV_FLAGS_USES_ION)
param.memtype = KGSL_USER_MEM_TYPE_ION;
#endif
else {
LOGE("Invalid handle flags: 0x%x", handle->flags);
return 0;