diff --git a/libcopybit/copybit.cpp b/libcopybit/copybit.cpp index 08a650b..ea013ee 100644 --- a/libcopybit/copybit.cpp +++ b/libcopybit/copybit.cpp @@ -142,6 +142,7 @@ static void set_image(struct mdp_img *img, const struct copybit_image_t *rhs) img->offset = hnd->offset; #if defined(COPYBIT_MSM7K) if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_GPU) { + img->offset += hnd->map_offset; img->memory_id = hnd->gpu_fd; if (img->format == MDP_RGBA_8888) { // msm7201A GPU only supports BGRA_8888 destinations