summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamkumar Radhakrishnan <ramkumar@codeaurora.org>2017-10-11 11:47:56 -0700
committerSteve Pfetsch <spfetsch@google.com>2017-10-11 18:05:17 -0700
commitb7f8cc171ef2ec104c9ddb76deea5605998d08f3 (patch)
treedb34feb46fe33e7a277457a1acdbccfa91b33720
parente6ce8dd6984a7c203a99617788f376d36d57565d (diff)
downloaddisplay-b7f8cc171ef2ec104c9ddb76deea5605998d08f3.tar.gz
[DO NOT MERGE] msm8996: libgralloc: Fix adding offset to the mapped base address
Bug: 63662821 CRs-Fixed: 2109325 Change-Id: Ib67ba670753d0f2ce41ca7168de7ab5202103a47
-rw-r--r--msm8996/libgralloc/mapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/msm8996/libgralloc/mapper.cpp b/msm8996/libgralloc/mapper.cpp
index 7604787a..6db80a8f 100644
--- a/msm8996/libgralloc/mapper.cpp
+++ b/msm8996/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.