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
This commit is contained in:
Mathias Agopian 2010-03-18 18:16:45 -07:00
parent 66fa227f44
commit e55ffb9bb8

View File

@ -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