summaryrefslogtreecommitdiff
path: root/msm8996
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:07:23 -0700
commit7344889023d50b5c1153da5ec25c25ce323416a5 (patch)
treed7a025044c46e62c3a2b69180a4e5e40b23569eb /msm8996
parent1008e23395b94e1ce0a68e9d81816620cb1678ce (diff)
downloaddisplay-7344889023d50b5c1153da5ec25c25ce323416a5.tar.gz
[DO NOT MERGE] msm8996: libgralloc: Fix adding offset to the mapped base address
Bug: 63662821 CRs-Fixed: 2109325 Change-Id: Ib67ba670753d0f2ce41ca7168de7ab5202103a47
Diffstat (limited to 'msm8996')
-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 2ecb491c..77e761d2 100644
--- a/msm8996/libgralloc/mapper.cpp
+++ b/msm8996/libgralloc/mapper.cpp
@@ -73,7 +73,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;
}
@@ -104,7 +104,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.