summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Pfetsch <spfetsch@google.com>2017-10-06 16:01:11 -0700
committerSteve Pfetsch <spfetsch@google.com>2017-10-11 18:05:26 -0700
commitc03ecc290737beed8f16db95668f2aef58188a0c (patch)
tree5f2ce2c36115500dc79774601133d07b2ee0c77d
parentb7f8cc171ef2ec104c9ddb76deea5605998d08f3 (diff)
downloaddisplay-c03ecc290737beed8f16db95668f2aef58188a0c.tar.gz
[DO NOT MERGE] msm8998: libgralloc: Fix adding offset to the mapped base address
Bug: 63662821 Change-Id: I3621eb3080b4e502d7eb8ffb65382153a34c60c0
-rw-r--r--msm8998/libgralloc/mapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/msm8998/libgralloc/mapper.cpp b/msm8998/libgralloc/mapper.cpp
index 132c768a..c9be0c7c 100644
--- a/msm8998/libgralloc/mapper.cpp
+++ b/msm8998/libgralloc/mapper.cpp
@@ -71,7 +71,7 @@ static int gralloc_map_metadata(buffer_handle_t handle) {
hnd, hnd->fd_metadata, strerror(errno));
return -errno;
}
- hnd->base_metadata = uint64_t(mappedAddress) + hnd->offset_metadata;
+ hnd->base_metadata = uint64_t(mappedAddress);
}
return 0;
}
@@ -102,7 +102,7 @@ static int gralloc_map(gralloc_module_t const* module,
return -errno;
}
- hnd->base = uint64_t(mappedAddress) + hnd->offset;
+ hnd->base = uint64_t(mappedAddress);
} else {
// Cannot map secure buffers or framebuffers, but still need to map
// metadata for secure buffers.