should fix qsd8k builds
This commit is contained in:
parent
50b3755b7d
commit
06bd510731
@ -25,6 +25,7 @@ LOCAL_SHARED_LIBRARIES := liblog
|
||||
LOCAL_SRC_FILES := copybit.cpp
|
||||
LOCAL_MODULE := copybit.msm7k
|
||||
LOCAL_C_INCLUDES += hardware/msm7k/libgralloc
|
||||
LOCAL_C_FLAGS := -DCOPYBIT_MSM7K=1
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
endif
|
||||
|
||||
@ -36,5 +37,6 @@ LOCAL_SHARED_LIBRARIES := liblog
|
||||
LOCAL_SRC_FILES := copybit.cpp
|
||||
LOCAL_MODULE := copybit.qsd8k
|
||||
LOCAL_C_INCLUDES += hardware/libhardware/modules/gralloc
|
||||
LOCAL_C_FLAGS := -DCOPYBIT_QSD8K=1
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
endif
|
||||
|
@ -122,8 +122,12 @@ static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs)
|
||||
img->height = rhs->h;
|
||||
img->format = get_format(rhs->format);
|
||||
img->offset = hnd->offset;
|
||||
#if defined(COPYBIT_MSM7K)
|
||||
img->memory_id = (hnd->flags & private_handle_t::PRIV_FLAGS_USES_GPU)
|
||||
? hnd->gpu_fd : hnd->fd;
|
||||
#else
|
||||
img->memory_id = hnd->fd;
|
||||
#endif
|
||||
}
|
||||
/** setup rectangles */
|
||||
static void set_rects(struct copybit_context_t *dev,
|
||||
|
Loading…
x
Reference in New Issue
Block a user