From e55ffb9bb8074bae4e3a21eee6610508c7396666 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 18 Mar 2010 18:16:45 -0700 Subject: [PATCH] gralloc and copybit now can properly handle EBI or SMI GPU surfaces up until now we relied on the EBI region map_offset being zero, which prevented us to use SMI for surfaces, as their map_offset is different. the copybit hal needs the map_offset to figure out which region to use. Change-Id: I920b31ecb77a7b0943dfcd8e3362e2c38ac83297 --- libcopybit/copybit.cpp | 1 + 1 file changed, 1 insertion(+) 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